Scalar type in Vector is not added to the IR #85
Labels
area: back-end
Outputs of shader conversion
kind: bug
Something isn't working
lang: SPIR-V
Binary SPIR-V input and output
Converting this WGSL:
To the following IR module (omitted most things):
As you can see, the Float scalar is not created, the SPIR-V back-end has to check if the scalar type already exists, if not, create it.
The reason the quad.wgsl works, is because at the top of the file is the following line declared:
const c_scale: f32 = 1.2;
This causes the front-end to create the Float scalar for the Vectors that need this.
The text was updated successfully, but these errors were encountered: