Read from depth texture should be ImageFetch
Closed this issue · 0 comments
dneto0 commented
Currently the table says reading from depth textures uses OpImageRead in SPIR-V.
For depth textures, WGSL only allows sampling and "textureLoad". So I assume depth textures use Sampled=1.
So you have to use OpImageFetch to read from them instead of OpImageRead.