dawn-cmake/test/tint/statements/compound_assign/scalar/modulo.wgsl

10 lines
104 B
WebGPU Shading Language

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