javascript get device gpu info

Solutions on MaxInterview for javascript get device gpu info by the best coders in the world

showing results for - "javascript get device gpu info"
Tristen
20 Apr 2016
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
Veronica
19 Jan 2016
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)