dawn-cmake/test/statements/assign/phony/addr_of_runtime_array.wgsl

11 lines
163 B
WebGPU Shading Language

struct S {
arr : array<i32>;
};
[[binding(0), group(0)]] var<storage, read_write> s : S;
[[stage(compute), workgroup_size(1)]]
fn main() {
_ = &s.arr;
}