WebGL 有没有办法提供使用哪个 ANGLE 后端的提示?

Is there a way for WebGL to provide a hint for which ANGLE backend to use?

我有一个使用 WebGL 进行 3D 渲染的网络应用程序,它在 Linux 上渲染良好,但在几个 Windows 10 系统(chrome、edge 和 firefox)上渲染效果不佳。看起来当我的 NVidia GPU 被使用时,GL 上下文几乎立即丢失。使用集成 Intel GPU 时,它会呈现,但速度慢得令人无法接受。

在 Chrome94 中,如果我将“#use-angle”标志从 D3D11 更改为 OpenGL,它可以完美运行。

在我的 Web 应用程序中是否有方法提供关于浏览器应该首选哪个 Angle 后端的提示?

或者我唯一的前进方向(不告诉用户切换实验性浏览器标志)是为了弄清楚我的 app/shaders D3D11 的哪一部分正在阻塞?

Is there way in my web application to provide a hint about which Angle backend should be preferred by the browser?

没有

Or is my only path forward (without telling users to toggle an experimental browser flag) to try to figure out what part of my app/shaders D3D11 is choking on?

也许您正在尝试同时编译大量繁重的着色器(例如带有嵌套循环的着色器)?