frguthmann / d3d12_webgpu_shim

MIT License
7 stars 0 forks source link

WebGL #1

Open GeorgePsom opened 3 months ago

GeorgePsom commented 3 months ago

Any clue whether, this would work with webgl instead, or how to make it work with that API

frguthmann commented 3 months ago

Hi!

By default, Chrome's backend for WebGL is DirectX 11. RGP doesn't support DX11 and neither does Nsight's GPU trace mode (which is the proper GPU profiling mode). I don't see Nvidia or AMD investing more time on DX11 in the future.

Alternatively, you can change the default backend in Chrome, but all your users will still be on the default one. So whatever you will measure will not be exactly what your users will experience. I very quickly tried the flag #enable-vulkan and it seems to work with both Nsight and RGP.