blob: 0def47729ed35b99bdcbcd428d728915b1078218 [file] [log] [blame]
struct Inner {
int scalar_i32;
float scalar_f32;
};
ByteAddressBuffer sb : register(t0);
RWByteAddressBuffer s : register(u1);
int tint_f32_to_i32(float value) {
return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : (int(-2147483648)))) : (int(2147483647)));
}
Inner v(uint offset) {
Inner v_1 = {asint(sb.Load((offset + 0u))), asfloat(sb.Load((offset + 4u)))};
return v_1;
}
typedef Inner ary_ret[4];
ary_ret v_2(uint offset) {
Inner a[4] = (Inner[4])0;
{
uint v_3 = 0u;
v_3 = 0u;
while(true) {
uint v_4 = v_3;
if ((v_4 >= 4u)) {
break;
}
Inner v_5 = v((offset + (v_4 * 8u)));
a[v_4] = v_5;
{
v_3 = (v_4 + 1u);
}
continue;
}
}
Inner v_6[4] = a;
return v_6;
}
typedef float3 ary_ret_1[2];
ary_ret_1 v_7(uint offset) {
float3 a[2] = (float3[2])0;
{
uint v_8 = 0u;
v_8 = 0u;
while(true) {
uint v_9 = v_8;
if ((v_9 >= 2u)) {
break;
}
a[v_9] = asfloat(sb.Load3((offset + (v_9 * 16u))));
{
v_8 = (v_9 + 1u);
}
continue;
}
}
float3 v_10[2] = a;
return v_10;
}
float4x4 v_11(uint offset) {
return float4x4(asfloat(sb.Load4((offset + 0u))), asfloat(sb.Load4((offset + 16u))), asfloat(sb.Load4((offset + 32u))), asfloat(sb.Load4((offset + 48u))));
}
float4x3 v_12(uint offset) {
return float4x3(asfloat(sb.Load3((offset + 0u))), asfloat(sb.Load3((offset + 16u))), asfloat(sb.Load3((offset + 32u))), asfloat(sb.Load3((offset + 48u))));
}
float4x2 v_13(uint offset) {
return float4x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u))), asfloat(sb.Load2((offset + 16u))), asfloat(sb.Load2((offset + 24u))));
}
float3x4 v_14(uint offset) {
return float3x4(asfloat(sb.Load4((offset + 0u))), asfloat(sb.Load4((offset + 16u))), asfloat(sb.Load4((offset + 32u))));
}
float3x3 v_15(uint offset) {
return float3x3(asfloat(sb.Load3((offset + 0u))), asfloat(sb.Load3((offset + 16u))), asfloat(sb.Load3((offset + 32u))));
}
float3x2 v_16(uint offset) {
return float3x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u))), asfloat(sb.Load2((offset + 16u))));
}
float2x4 v_17(uint offset) {
return float2x4(asfloat(sb.Load4((offset + 0u))), asfloat(sb.Load4((offset + 16u))));
}
float2x3 v_18(uint offset) {
return float2x3(asfloat(sb.Load3((offset + 0u))), asfloat(sb.Load3((offset + 16u))));
}
float2x2 v_19(uint offset) {
return float2x2(asfloat(sb.Load2((offset + 0u))), asfloat(sb.Load2((offset + 8u))));
}
[numthreads(1, 1, 1)]
void main() {
float scalar_f32 = asfloat(sb.Load(0u));
int scalar_i32 = asint(sb.Load(4u));
uint scalar_u32 = sb.Load(8u);
float2 vec2_f32 = asfloat(sb.Load2(16u));
int2 vec2_i32 = asint(sb.Load2(24u));
uint2 vec2_u32 = sb.Load2(32u);
float3 vec3_f32 = asfloat(sb.Load3(48u));
int3 vec3_i32 = asint(sb.Load3(64u));
uint3 vec3_u32 = sb.Load3(80u);
float4 vec4_f32 = asfloat(sb.Load4(96u));
int4 vec4_i32 = asint(sb.Load4(112u));
uint4 vec4_u32 = sb.Load4(128u);
float2x2 mat2x2_f32 = v_19(144u);
float2x3 mat2x3_f32 = v_18(160u);
float2x4 mat2x4_f32 = v_17(192u);
float3x2 mat3x2_f32 = v_16(224u);
float3x3 mat3x3_f32 = v_15(256u);
float3x4 mat3x4_f32 = v_14(304u);
float4x2 mat4x2_f32 = v_13(352u);
float4x3 mat4x3_f32 = v_12(384u);
float4x4 mat4x4_f32 = v_11(448u);
float3 arr2_vec3_f32[2] = v_7(512u);
Inner struct_inner = v(544u);
Inner array_struct_inner[4] = v_2(552u);
int v_20 = (tint_f32_to_i32(scalar_f32) + scalar_i32);
int v_21 = (v_20 + int(scalar_u32));
int v_22 = ((v_21 + tint_f32_to_i32(vec2_f32.x)) + vec2_i32.x);
int v_23 = (v_22 + int(vec2_u32.x));
int v_24 = ((v_23 + tint_f32_to_i32(vec3_f32.y)) + vec3_i32.y);
int v_25 = (v_24 + int(vec3_u32.y));
int v_26 = ((v_25 + tint_f32_to_i32(vec4_f32.z)) + vec4_i32.z);
int v_27 = (v_26 + int(vec4_u32.z));
int v_28 = (v_27 + tint_f32_to_i32(mat2x2_f32[int(0)].x));
int v_29 = (v_28 + tint_f32_to_i32(mat2x3_f32[int(0)].x));
int v_30 = (v_29 + tint_f32_to_i32(mat2x4_f32[int(0)].x));
int v_31 = (v_30 + tint_f32_to_i32(mat3x2_f32[int(0)].x));
int v_32 = (v_31 + tint_f32_to_i32(mat3x3_f32[int(0)].x));
int v_33 = (v_32 + tint_f32_to_i32(mat3x4_f32[int(0)].x));
int v_34 = (v_33 + tint_f32_to_i32(mat4x2_f32[int(0)].x));
int v_35 = (v_34 + tint_f32_to_i32(mat4x3_f32[int(0)].x));
int v_36 = (v_35 + tint_f32_to_i32(mat4x4_f32[int(0)].x));
s.Store(0u, asuint((((v_36 + tint_f32_to_i32(arr2_vec3_f32[int(0)].x)) + struct_inner.scalar_i32) + array_struct_inner[int(0)].scalar_i32)));
}