dawn-cmake/test/ptr_ref/store/local/i32.wgsl.expected.wgsl

8 lines
148 B
WebGPU Shading Language
Raw Normal View History

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