This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
WGSL doesn't type check values for vectors #43
Labels
area: front-end
Input formats for conversion
kind: bug
Something isn't working
lang: WGSL
WebGPU shading language
Having the following WGSL:
The values provided into the vector float 4 with the 4 integer values will be correctly parsed to the IR model:
The back-ends would now have to check if the vector where these constants are provided for is able to use them. I think it would be better to let the WGSL front-end check if the values in a vector are of the same Type as the composite they are in.
This is not something only applicable to vectors, and should have a general type check to ensure a correct IR model is delivered to the back-end.
The text was updated successfully, but these errors were encountered: