dawn-cmake/test/tint/statements/compound_assign/vector/shift_left.wgsl

10 lines
122 B
WebGPU Shading Language

struct S {
a : vec4<i32>,
}
@group(0) @binding(0)
var<storage, read_write> v : S;
fn foo() {
v.a <<= vec4<u32>(2);
}