Skip to content

Instantly share code, notes, and snippets.

@josemmo
Created March 28, 2018 08:15
Show Gist options
  • Save josemmo/a6607b7b8125e710abde7e0dacd75410 to your computer and use it in GitHub Desktop.
Save josemmo/a6607b7b8125e710abde7e0dacd75410 to your computer and use it in GitHub Desktop.
// 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