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

10 lines
150 B
WebGPU Shading Language

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