Created
March 15, 2021 02:13
-
-
Save lvisei/224e4beacc6d938588350392431dc581 to your computer and use it in GitHub Desktop.
Javascript get graphics card information
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const canvas = document.createElement('canvas'); | |
const webgl = canvas.getContext('experimental-webgl'); | |
const info = webgl.getExtension('WEBGL_debug_renderer_info'); | |
const msg = webgl.getParameter(info.UNMASKED_RENDERER_WEBGL); | |
console.log(msg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment