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

10 lines
129 B
WebGPU Shading Language

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