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

8 lines
122 B
WebGPU Shading Language

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