2021-05-18 10:28:48 +00:00
|
|
|
struct S {
|
|
|
|
a : array<i32>;
|
2022-01-19 18:11:17 +00:00
|
|
|
}
|
2021-05-18 10:28:48 +00:00
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@group(0) @binding(0) var<storage, read> G : S;
|
2021-05-18 10:28:48 +00:00
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@stage(compute) @workgroup_size(1)
|
2021-05-18 10:28:48 +00:00
|
|
|
fn main() {
|
2021-06-10 18:43:04 +00:00
|
|
|
let l1 : u32 = arrayLength(&(G.a));
|
|
|
|
let p = &(G.a);
|
|
|
|
let l2 : u32 = arrayLength(p);
|
2021-05-18 10:28:48 +00:00
|
|
|
}
|