blob: 85836f04ba7c55f9a92f1a39866502ada98245c4 [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
dan sinclairb29892b2022-06-07 13:55:34 +00007@compute @workgroup_size(1)
Ben Claytonaba42ed2021-06-10 18:43:04 +00008fn main() {
9 let p = &G;
10 let p2 = &((*p).a);
11 let l1 : u32 = arrayLength(p2);
12}