Skip to content
Commit 01250b85 authored by Hans Christian Schmitz's avatar Hans Christian Schmitz Committed by Dzmitry Malyshau
Browse files

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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment