dawn-cmake/test/intrinsics/arrayLength.wgsl

13 lines
255 B
WebGPU Shading Language

[[block]]
struct S {
a : array<i32>;
};
[[group(0), binding(0)]] var<storage> G : [[access(read)]] S;
[[stage(compute)]]
fn main() {
// TODO(crbug.com/tint/806): arrayLength signature is currently wrong
// let l : i32 = arrayLength(&G.a);
}