gpuweb / spirv-execution-env

SPIR-V for WebGPU documents (execution environment and more!)
15 stars 8 forks source link

disallow ImageRead, ImageWrite, ImageFetch with ConstOffset #53

Open dneto0 opened 3 years ago

dneto0 commented 3 years ago

In WGSL, textureLoad, textureStore do not have overloads with an offset parameter.

See also https://bugs.chromium.org/p/tint/issues/detail?id=408

dneto0 commented 3 years ago

Vulkan permits use of ConstOffset with ImageFetch.

I suspect there is a missing rule to ban ConstOffset with ImageRead, ImageWrite.