This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
[wgsl-in] Rejection of composite consts without explicit nested types #1957
Labels
area: front-end
Input formats for conversion
kind: bug
Something isn't working
lang: WGSL
WebGPU shading language
Milestone
Even though the types are specified in the declaration of the const, naga rejects consts that are composite if they omit type information from their constructors.
WGSL:
Error:
The above works fine if given e.g.
vec3<f32>(0.0, 0.0, 0.0)
. I believe it should be acceptable to omit the type in the constructor.The text was updated successfully, but these errors were encountered: