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

10 lines
133 B
WebGPU Shading Language

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