dawn-cmake/test/tint/expressions/swizzle/write/vec3/f32.wgsl.expected.wgsl

13 lines
142 B
WebGPU Shading Language

struct S {
v : vec3<f32>;
}
var<private> P : S;
fn f() {
P.v = vec3<f32>(1.0, 2.0, 3.0);
P.v.x = 1.0;
P.v.y = 2.0;
P.v.z = 3.0;
}