blob: 03cd1b77650e5d5568a9dfec34b8b535ba465fba [file] [log] [blame]
@group(0) @binding(0) var<storage, read_write> s : f32;
fn f1() -> array<f32, 4> {
return array<f32, 4>();
}
fn f2() -> array<array<f32, 4>, 3> {
return array<array<f32, 4>, 3>(f1(), f1(), f1());
}
fn f3() -> array<array<array<f32, 4>, 3>, 2> {
return array<array<array<f32, 4>, 3>, 2>(f2(), f2());
}
@compute @workgroup_size(1)
fn main() {
let a1 : array<f32, 4> = f1();
let a2 : array<array<f32, 4>, 3> = f2();
let a3 : array<array<array<f32, 4>, 3>, 2> = f3();
s = ((a1[0] + a2[0][0]) + a3[0][0][0]);
}