Created
November 22, 2016 16:24
-
-
Save krazyjakee/dea9639309a2ff5f5773b568130af115 to your computer and use it in GitHub Desktop.
Detect GPU in javascript
This file contains 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
var graphics_card = function(){ | |
var gl = document.createElement("canvas").getContext("experimental-webgl"); | |
return gl.getParameter(gl.getExtension("WEBGL_debug_renderer_info").UNMASKED_RENDERER_WEBGL); | |
} | |
document.body.innerHTML = graphics_card(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment