dawn-cmake/test/tint/statements/compound_assign/workgroup.wgsl

10 lines
144 B
WebGPU Shading Language

var<workgroup> a : i32;
var<workgroup> b : vec4<f32>;
var<workgroup> c : mat2x2<f32>;
fn foo() {
a /= 2;
b *= mat4x4<f32>();
c *= 2.0;
}