dawn-cmake/test/array/assign_to_subexpr.wgsl.expe...

21 lines
347 B
HLSL

[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
struct S {
int arr[4];
};
void foo() {
const int src[4] = (int[4])0;
int tint_symbol[4] = (int[4])0;
S dst_struct = (S)0;
int dst_array[2][4] = (int[2][4])0;
dst_struct.arr = src;
dst_array[1] = src;
tint_symbol = src;
dst_struct.arr = src;
dst_array[0] = src;
}