Ben Clayton | aba42ed | 2021-06-10 18:43:04 +0000 | [diff] [blame] | 1 | struct S { |
James Price | 3b671cb | 2022-03-28 14:31:22 +0000 | [diff] [blame] | 2 | a : array<i32>, |
Ben Clayton | aba42ed | 2021-06-10 18:43:04 +0000 | [diff] [blame] | 3 | }; |
| 4 | |
Ben Clayton | 01e4b6f | 2022-01-19 22:46:57 +0000 | [diff] [blame] | 5 | @group(0) @binding(0) var<storage, read> G : S; |
Ben Clayton | aba42ed | 2021-06-10 18:43:04 +0000 | [diff] [blame] | 6 | |
dan sinclair | b29892b | 2022-06-07 13:55:34 +0000 | [diff] [blame] | 7 | @compute @workgroup_size(1) |
Ben Clayton | aba42ed | 2021-06-10 18:43:04 +0000 | [diff] [blame] | 8 | fn main() { |
| 9 | let p = &G; |
| 10 | let p2 = &((*p).a); |
| 11 | let l1 : u32 = arrayLength(p2); |
| 12 | } |