WGSL validation issue when creating mat3x3<f32> as constant #2110
Labels
area: front-end
Input formats for conversion
help wanted
Extra attention is needed
kind: bug
Something isn't working
lang: WGSL
WebGPU shading language
I've been writing some WGSL shader that creates a
mat3x3<f32>
using themat3x3(e1,...,e9): mat3x3<T>
It works well if I define my matrix inside a function:
When moving
m
outside of the function to make it a constant, naga complains with:Full shader code that is not validated by naga:
Full shader that is validated by naga, no problem:
The text was updated successfully, but these errors were encountered: