ShaderToy-Chrome-Plugin
ShaderToy-Chrome-Plugin copied to clipboard
icon to show if the renderer is GPU or fallback
Is your feature request related to a problem? Please describe. Shadertoy makes driver crash, more or less often depending on current shaders, browser, OS. After a few crashes in a raw several browsers (chrome, firefox) switch to a fallback mode with software emulation. For many shaders it's hard to notice since CPU is then enough (others get slower, from a little to very). Still, the emulator's compiler doesn't have the same behavior, not the same bugs, and is thus misleading when it comes to checking correctness and compatibility. Once we suspect the switch, we have to go on special system page (about:gpu) or website (webglreport) to check, which most users don't even know about.
Describe the solution you'd like There are many ways to detect the normal GPU driver vs fallback emulation: OpenGL flags GL_RENDERER , GPU0, "driver vendor". not sure which is most compatible. ( Note that on windows GL_RENDERER also allows to tell whether D3D or OpenGL is used, which is also an interesting information. ) My suggestion is to bring this info to the user. It could be through a colored bullet, a text box, an overlay... For instance a big bullet below the shader could be blue for windows D3D angle, green for OpenGL, and red for fallback emulation. ( it may also be half-darken, or circled in black, in case of webGL1 instead of webGL2 ).