dawn-cmake/test/tint/ptr_ref/load/param/private/i32.wgsl

11 lines
153 B
WebGPU Shading Language

fn func(pointer : ptr<private, i32>) -> i32 {
return *pointer;
}
var<private> P : i32;
@compute @workgroup_size(1)
fn main() {
let r = func(&P);
}