Created
March 28, 2018 08:15
-
-
Save josemmo/a6607b7b8125e710abde7e0dacd75410 to your computer and use it in GitHub Desktop.
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
// Datos de la GPU via WebGL | |
var canvas = document.createElement('canvas'); | |
var gl = canvas.getContext('webgl'); | |
var GL_TAG = 'WEBGL_debug_renderer_info'; | |
var gl_info = gl.getExtension(GL_TAG); | |
var TAG1 = gl_info.UNMASKED_RENDERER_WEBGL; | |
var TAG2 = gl_info.UNMASKED_VENDOR_WEBGL; | |
fp_sources.hardware = { | |
renderer: gl.getParameter(TAG1), | |
vendor: gl.getParameter(TAG2) | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment