blob: f40edd7e6c6444dc74deb2c27a108cdbb07b51fd [file] [log] [blame]
cbuffer _UniformBuffer : register(b0, space0)
{
float4 _10_colorGreen : packoffset(c0);
float4 _10_colorRed : packoffset(c1);
};
static float4 sk_FragColor;
struct SPIRV_Cross_Output
{
float4 sk_FragColor : SV_Target0;
};
float4 main(float2 _24)
{
bool ok = true;
bool _41 = false;
if (true)
{
_41 = (_10_colorGreen.y == 1.0f) ? true : false;
}
else
{
_41 = false;
}
ok = _41;
bool _49 = false;
if (_41)
{
_49 = (_10_colorGreen.x == 1.0f) ? false : true;
}
else
{
_49 = false;
}
ok = _49;
float4 _50 = 0.0f.xxxx;
if (_49)
{
_50 = _10_colorGreen;
}
else
{
_50 = _10_colorRed;
}
return _50;
}
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;
}