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

11 lines
136 B
WebGPU Shading Language

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