dawn-cmake/test/ptr_ref/load/local/ptr_workgroup.wgsl

9 lines
131 B
WebGPU Shading Language

var<workgroup> i : i32;
[[stage(compute)]]
fn main() {
i = 123;
let p : ptr<workgroup, i32> = &i;
let use : i32 = *p + 1;
}