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

13 lines
180 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;
}