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

8 lines
141 B
WebGPU Shading Language

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