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

14 lines
141 B
WebGPU Shading Language

struct S {
v: vec3<i32>;
};
var<private> P : S;
fn f() {
P.v = vec3<i32>(1, 2, 3);
P.v.x = 1;
P.v.y = 2;
P.v.z = 3;
}