| type ArrayType = array<vec4<i32>, 4>; |
| var<private> src_private : ArrayType; |
| var<workgroup> src_workgroup : ArrayType; |
| @group(0) @binding(0) var<uniform> src_uniform : S; |
| @group(0) @binding(1) var<storage, read_write> src_storage : S; |
| fn ret_arr() -> ArrayType { |
| fn ret_struct_arr() -> S { |
| fn foo(src_param : ArrayType) { |
| var src_function : ArrayType; |
| // Assign from type constructor. |
| dst = ArrayType(vec4(1), vec4(2), vec4(3), vec4(3)); |
| // Assign from parameter. |
| // Assign from function call. |
| let src_let : ArrayType = ArrayType(); |
| // Assign from var, various storage classes. |
| // Assign from struct.arr, various storage classes. |
| dst = ret_struct_arr().arr; |
| var dst_nested : array<array<array<i32, 2>, 3>, 4>; |
| var src_nested : array<array<array<i32, 2>, 3>, 4>; |