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

9 lines
138 B
WebGPU Shading Language
Raw Permalink Normal View History

var<workgroup> i : i32;
@compute @workgroup_size(1)
fn main() {
i = 123;
let p : ptr<workgroup, i32> = &i;
let u : i32 = *p + 1;
}