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

8 lines
147 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);
}