dawn-cmake/test/intrinsics/arrayLength.wgsl

13 lines
244 B
WebGPU Shading Language
Raw Normal View History

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