dawn-cmake/test/ptr_ref/load/global/struct_field.wgsl

11 lines
120 B
WebGPU Shading Language

struct S {
i : i32;
};
var<private> V : S;
[[stage(compute), workgroup_size(1)]]
fn main() {
let i : i32 = V.i;
}