dawn-cmake/test/tint/ptr_ref/load/local/ptr_function.wgsl

7 lines
122 B
WebGPU Shading Language

@compute @workgroup_size(1)
fn main() {
var i : i32 = 123;
let p : ptr<function, i32> = &i;
let u : i32 = *p + 1;
}