blob: 4560c296bb797faf3ab555fbc9c6f5e7bb29c3ac [file] [log] [blame]
struct S {
int4 arr[4];
};
struct main_inputs {
uint tint_local_index : SV_GroupIndex;
};
static int4 src_private[4] = (int4[4])0;
groupshared int4 src_workgroup[4];
cbuffer cbuffer_src_uniform : register(b0) {
uint4 src_uniform[4];
};
RWByteAddressBuffer src_storage : register(u1);
groupshared int4 tint_symbol[4];
groupshared int dst_nested[4][3][2];
typedef int4 ary_ret[4];
ary_ret ret_arr() {
int4 v[4] = (int4[4])0;
return v;
}
S ret_struct_arr() {
S v_1 = (S)0;
return v_1;
}
typedef int4 ary_ret_1[4];
ary_ret_1 v_2(uint offset) {
int4 a[4] = (int4[4])0;
{
uint v_3 = 0u;
v_3 = 0u;
while(true) {
uint v_4 = v_3;
if ((v_4 >= 4u)) {
break;
}
a[v_4] = asint(src_storage.Load4((offset + (v_4 * 16u))));
{
v_3 = (v_4 + 1u);
}
continue;
}
}
int4 v_5[4] = a;
return v_5;
}
typedef int4 ary_ret_2[4];
ary_ret_2 v_6(uint start_byte_offset) {
int4 a[4] = (int4[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
while(true) {
uint v_8 = v_7;
if ((v_8 >= 4u)) {
break;
}
a[v_8] = asint(src_uniform[((start_byte_offset + (v_8 * 16u)) / 16u)]);
{
v_7 = (v_8 + 1u);
}
continue;
}
}
int4 v_9[4] = a;
return v_9;
}
void foo(int4 src_param[4]) {
int4 src_function[4] = (int4[4])0;
int4 v_10[4] = {(1).xxxx, (2).xxxx, (3).xxxx, (3).xxxx};
tint_symbol = v_10;
tint_symbol = src_param;
int4 v_11[4] = ret_arr();
tint_symbol = v_11;
int4 v_12[4] = (int4[4])0;
int4 src_let[4] = v_12;
tint_symbol = src_let;
int4 v_13[4] = src_function;
tint_symbol = v_13;
int4 v_14[4] = src_private;
tint_symbol = v_14;
int4 v_15[4] = src_workgroup;
tint_symbol = v_15;
S v_16 = ret_struct_arr();
int4 v_17[4] = v_16.arr;
tint_symbol = v_17;
int4 v_18[4] = v_6(0u);
tint_symbol = v_18;
int4 v_19[4] = v_2(0u);
tint_symbol = v_19;
int src_nested[4][3][2] = (int[4][3][2])0;
int v_20[4][3][2] = src_nested;
dst_nested = v_20;
}
void main_inner(uint tint_local_index) {
{
uint v_21 = 0u;
v_21 = tint_local_index;
while(true) {
uint v_22 = v_21;
if ((v_22 >= 4u)) {
break;
}
src_workgroup[v_22] = (0).xxxx;
tint_symbol[v_22] = (0).xxxx;
{
v_21 = (v_22 + 1u);
}
continue;
}
}
{
uint v_23 = 0u;
v_23 = tint_local_index;
while(true) {
uint v_24 = v_23;
if ((v_24 >= 24u)) {
break;
}
dst_nested[(v_24 / 6u)][((v_24 / 2u) % 3u)][(v_24 % 2u)] = 0;
{
v_23 = (v_24 + 1u);
}
continue;
}
}
GroupMemoryBarrierWithGroupSync();
int4 v_25[4] = (int4[4])0;
int4 val[4] = v_25;
foo(val);
}
[numthreads(1, 1, 1)]
void main(main_inputs inputs) {
main_inner(inputs.tint_local_index);
}