type ArrayType = array, 4>; struct S { arr : ArrayType; }; struct S_nested { arr : array, 3>, 4>; }; var src_private : ArrayType; var src_workgroup : ArrayType; @group(0) @binding(0) var src_uniform : S; @group(0) @binding(1) var src_storage : S; @group(0) @binding(2) var dst : S; @group(0) @binding(3) var dst_nested : S_nested; fn ret_arr() -> ArrayType { return ArrayType(); } fn ret_struct_arr() -> S { return S(); } fn foo(src_param : ArrayType) { var src_function : ArrayType; // Assign from type constructor. dst.arr = ArrayType(vec4(1), vec4(2), vec4(3), vec4(3)); // Assign from parameter. dst.arr = src_param; // Assign from function call. dst.arr = ret_arr(); // Assign from constant. let src_let : ArrayType = ArrayType(); dst.arr = src_let; // Assign from var, various storage classes. dst.arr = src_function; dst.arr = src_private; dst.arr = src_workgroup; // Assign from struct.arr, various storage classes. dst.arr = ret_struct_arr().arr; dst.arr = src_uniform.arr; dst.arr = src_storage.arr; // Nested assignment. var src_nested : array, 3>, 4>; dst_nested.arr = src_nested; }