blob: c38d1a1ee716c8952a4aafa5ffa2bbcbf335a9c6 [file] [log] [blame]
cbuffer _UniformBuffer : register(b0, space0)
{
float4 _10_testInputs : packoffset(c0);
float4 _10_colorGreen : packoffset(c1);
float4 _10_colorRed : packoffset(c2);
};
static float4 sk_FragColor;
struct SPIRV_Cross_Output
{
float4 sk_FragColor : SV_Target0;
};
float4 main(float2 _24)
{
bool _52 = false;
if (abs(degrees(_10_testInputs.x) - (-71.61972808837890625f)) < 0.0500000007450580596923828125f)
{
float2 _43 = abs(degrees(_10_testInputs.xy) - float2(-71.61972808837890625f, 0.0f));
_52 = all(bool2(_43.x < 0.0500000007450580596923828125f.xx.x, _43.y < 0.0500000007450580596923828125f.xx.y));
}
else
{
_52 = false;
}
bool _68 = false;
if (_52)
{
float3 _57 = abs(degrees(_10_testInputs.xyz) - float3(-71.61972808837890625f, 0.0f, 42.971836090087890625f));
_68 = all(bool3(_57.x < 0.0500000007450580596923828125f.xxx.x, _57.y < 0.0500000007450580596923828125f.xxx.y, _57.z < 0.0500000007450580596923828125f.xxx.z));
}
else
{
_68 = false;
}
bool _82 = false;
if (_68)
{
float4 _73 = abs(degrees(_10_testInputs) - float4(-71.61972808837890625f, 0.0f, 42.971836090087890625f, 128.9155120849609375f));
_82 = all(bool4(_73.x < 0.0500000007450580596923828125f.xxxx.x, _73.y < 0.0500000007450580596923828125f.xxxx.y, _73.z < 0.0500000007450580596923828125f.xxxx.z, _73.w < 0.0500000007450580596923828125f.xxxx.w));
}
else
{
_82 = false;
}
float4 _83 = 0.0f.xxxx;
if (_82)
{
_83 = _10_colorGreen;
}
else
{
_83 = _10_colorRed;
}
return _83;
}
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;
}