dawn-cmake/test/tint/bug/tint/1764.wgsl

13 lines
208 B
WebGPU Shading Language

// flags: --transform substitute_override
override O = 123;
alias A = array<i32, O*2>;
var<workgroup> W : A;
@compute @workgroup_size(1)
fn main() {
let p : ptr<workgroup, A> = &W;
(*p)[0] = 42;
}