11 lines
163 B
WebGPU Shading Language
11 lines
163 B
WebGPU Shading Language
|
struct S {
|
||
|
f : f32;
|
||
|
}
|
||
|
|
||
|
@group(0) @binding(0) var<storage, read> arr : array<S>;
|
||
|
|
||
|
@stage(compute) @workgroup_size(1)
|
||
|
fn main() {
|
||
|
let len = arrayLength(&arr);
|
||
|
}
|