gpuweb/spirv-execution-env

disallow multisampled storage images

dneto0 opened this issue · 1 comments

Vulkan may allow MS=1 on storage images, but WebGPU does not.

In WebGPU, only sampled textures can be multisampled.
See WebGPU binding validation: https://gpuweb.github.io/gpuweb/#abstract-opdef-validating-shader-binding

Tint issue: https://bugs.chromium.org/p/tint/issues/detail?id=409

Using MS=1 for storage image requires declaring the StorageImageMultisample capability. Since that is not a permitted capability for the WebGPU environment for SPIR-V, this case is already disallowed.