2021-05-18 10:28:48 +00:00
|
|
|
[[block]]
|
|
|
|
struct S {
|
2021-06-10 18:43:04 +00:00
|
|
|
a : array<i32>;
|
2021-05-18 10:28:48 +00:00
|
|
|
};
|
|
|
|
|
2021-06-04 20:41:47 +00:00
|
|
|
[[group(0), binding(0)]] var<storage, read> G : S;
|
2021-05-18 10:28:48 +00:00
|
|
|
|
2021-06-29 18:39:44 +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 p = &G;
|
|
|
|
let p2 = &((*p).a);
|
|
|
|
let l1 : u32 = arrayLength(p2);
|
2021-05-18 10:28:48 +00:00
|
|
|
}
|