Skip to content

Instantly share code, notes, and snippets.

@manthrax
Created December 24, 2024 23:07
Show Gist options
  • Save manthrax/c5064f64658953928770f932a624b76b to your computer and use it in GitHub Desktop.
Save manthrax/c5064f64658953928770f932a624b76b to your computer and use it in GitHub Desktop.
let gl = renderer.getContext();
let debugInfo = gl.getExtension("WEBGL_debug_renderer_info");
let vendor='unk';
let gpu = 'unk';
try {
vendor = gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL);
gpu = gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL);
} catch (err) {
}
console.log(vendor, gpu);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment