[wgsl-in] Rejection of matrix consts #1956
Labels
area: front-end
Input formats for conversion
kind: bug
Something isn't working
lang: WGSL
WebGPU shading language
Milestone
AFAIK, const matrices should be able to be initialized as normal (e.g.
mat2x2<f32>(0.0, 0.0, 0.0, 0.0)
) but naga seems to reject them.WGSL example:
Error:
The error seems to get worse in terms of clarity if the matrix isn't directly named, i.e.:
WGSL:
Error:
The text was updated successfully, but these errors were encountered: