blob: a30a39d450390a30f41eebf906774e7f4d2bb25c [file] [log] [blame]
Ben Claytonaba42ed2021-06-10 18:43:04 +00001struct S {
James Price3b671cb2022-03-28 14:31:22 +00002 a : array<i32>,
Ben Claytonaba42ed2021-06-10 18:43:04 +00003};
4
Ben Clayton01e4b6f2022-01-19 22:46:57 +00005@group(0) @binding(0) var<storage, read> G : S;
Ben Claytonaba42ed2021-06-10 18:43:04 +00006
Ben Clayton01e4b6f2022-01-19 22:46:57 +00007@stage(compute) @workgroup_size(1)
Ben Claytonaba42ed2021-06-10 18:43:04 +00008fn main() {
9 let p = &*&G;
10 let p2 = &*p;
11 let p3 = &((*p).a);
12 let l1 : u32 = arrayLength(&*p3);
13}