Fix WGSL vector splat constructor's type handling
Previously the constructor just used the type of the scalar argument regardless of whether or not it actually matched the vector splat constructors target type. This resulted in e.g. `vec2<f32>(0)` erroneously getting the type of a bi-vector of Sints with width 4. Now the splat constructor checks that the kind and width of the scalar argument is the same as that of the target specified in the constructor's type parameter.
parent
7a45d734
Please register or sign in to comment