Skip to content

Instantly share code, notes, and snippets.

@lvisei
Created March 15, 2021 02:13
Show Gist options
  • Save lvisei/224e4beacc6d938588350392431dc581 to your computer and use it in GitHub Desktop.
Save lvisei/224e4beacc6d938588350392431dc581 to your computer and use it in GitHub Desktop.
Javascript get graphics card information
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