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

12 lines
166 B
WebGPU Shading Language

const O = 123;
type A = array<i32, (O * 2)>;
var<workgroup> W : A;
@compute @workgroup_size(1)
fn main() {
let p : ptr<workgroup, A> = &(W);
(*(p))[0] = 42;
}