wgpu: WebGL2: panicked at 'Tex storage 2D multisample is not supported'

Description When using wgpu master with WebGL2 and MSAA I’m getting: panicked at 'Tex storage 2D multisample is not supported', C:\Users\super\.cargo\registry\src\github.com-1ecc6299db9ec823\glow-0.11.0\src\web_sys.rs:2168:9

Repro steps

See the attached zip of a wasm WebGL2 demo. Unpack, serve, browse, see panic.

Expected vs observed behavior Expected: no panic. Observed: panic in both Chrome and Firefox. 😃

Extra materials webgl2-multisample-panic.zip

Platform wgpu master @ ca7ca749cdb2b5d88512be2b1ec4e44f5a88dfe0, WebGL2, Windows 10

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 16 (15 by maintainers)

Most upvoted comments

I’ll get something rolling…

I think that would do #2327

The fix works 🎉

I just upgarded to 0.12 and encountered this issue. As far as I understand this block multisampling when using WebGL. This is not a huge blocker for me as WebGL is not my primary target. For the time being I can just disable multisampling on WebGL.

started to take a stab at this, don’t know how long it will take and if I can do something partial to unblock the particular issue We should add a zero-init disable extension regardless I think. At least right now the impl isn’t exactly geared towards performance so it can cause issues regardless.