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

8 lines
129 B
WebGPU Shading Language

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