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

8 lines
129 B
WebGPU Shading Language
Raw Permalink Normal View History

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