shader-slang / slang

Making it easier to work with shaders
MIT License
1.98k stars 169 forks source link

Invalid code generation for uint matrices with glslang backend #3592

Closed skallweitNV closed 6 months ago

skallweitNV commented 7 months ago

uintNxM matrices in slang are converted to umatNxM matrices through the glslang backend. However, it seems glsl only supports floating-point matrices. The compiler should probably emit some error when using non-floating-point matrices with the glslang backend.

Are non-floating-point matrices supported with the direct SPIR-V backend?

skallweitNV commented 7 months ago

Just tested with the SPIR-V backend, and the uint matrix types seem to work.

csyonghe commented 6 months ago

We are deprecating the glsl path so we are not going to fix this.