dawn-cmake/test/tint/ptr_ref/load/local/ptr_uniform.wgsl.expected.wgsl

12 lines
185 B
WebGPU Shading Language

struct S {
a : i32,
}
@group(0) @binding(0) var<uniform> v : S;
@stage(compute) @workgroup_size(1)
fn main() {
let p : ptr<uniform, i32> = &(v.a);
let use : i32 = (*(p) + 1);
}