1// Create canvas
2var canvas = document.createElement("canvas")
3var webgl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl")
4var debugInfo = webgl.getExtension("webgl_debug_renderer_info")
5var gpu = webgl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL)
6// We need to use the debugInfo because the webgl
7// will return a GPU ID and not the name
8// debugInfo extensions unmasks it and returns the GPU Name
1var canvas = document.createElement("canvas")
2var webgl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl")
3var debugInfo = webgl.getExtension("webgl_debug_renderer_info")
4var gpu = webgl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL)