blob: 9e4c041f160ba9018d2f12c519b6050b8469ea71 [file] [log] [blame]
cbuffer _UniformBuffer : register(b0, space0)
{
float4 _10_testInputs : packoffset(c0);
float4 _10_colorBlack : packoffset(c1);
float4 _10_colorGreen : packoffset(c2);
float4 _10_colorRed : packoffset(c3);
};
static float4 sk_FragColor;
struct SPIRV_Cross_Output
{
float4 sk_FragColor : SV_Target0;
};
float4 main(float2 _24)
{
float4 _RESERVED_IDENTIFIER_FIXUP_0_v = _10_testInputs;
int4 _47 = int4(int(_10_colorBlack.x), int(_10_colorBlack.y), int(_10_colorBlack.z), int(_10_colorBlack.w));
int4 _RESERVED_IDENTIFIER_FIXUP_1_i = _47;
float _51 = _10_testInputs[_47.x];
float _RESERVED_IDENTIFIER_FIXUP_2_x = _51;
float _54 = _10_testInputs[_47.y];
float _RESERVED_IDENTIFIER_FIXUP_3_y = _54;
float _57 = _10_testInputs[_47.z];
float _RESERVED_IDENTIFIER_FIXUP_4_z = _57;
float _60 = _10_testInputs[_47.w];
float _RESERVED_IDENTIFIER_FIXUP_5_w = _60;
float4 _61 = float4(_51, _54, _57, _60);
bool4 _67 = all(bool4(_61.x == float4(-1.25f, -1.25f, -1.25f, 0.0f).x, _61.y == float4(-1.25f, -1.25f, -1.25f, 0.0f).y, _61.z == float4(-1.25f, -1.25f, -1.25f, 0.0f).z, _61.w == float4(-1.25f, -1.25f, -1.25f, 0.0f).w)).xxxx;
return float4(_67.x ? _10_colorGreen.x : _10_colorRed.x, _67.y ? _10_colorGreen.y : _10_colorRed.y, _67.z ? _10_colorGreen.z : _10_colorRed.z, _67.w ? _10_colorGreen.w : _10_colorRed.w);
}
void frag_main()
{
float2 _20 = 0.0f.xx;
sk_FragColor = main(_20);
}
SPIRV_Cross_Output main()
{
frag_main();
SPIRV_Cross_Output stage_output;
stage_output.sk_FragColor = sk_FragColor;
return stage_output;
}