blob: d2ba3832bad83f6ea0f5c2b3a51b5ad87124a18f [file] [log] [blame]
cbuffer _UniformBuffer : register(b0, space0)
{
float4 _7_inputVal : packoffset(c0);
float4 _7_expected : packoffset(c1);
float4 _7_colorGreen : packoffset(c2);
float4 _7_colorRed : packoffset(c3);
};
static float4 sk_FragColor;
struct SPIRV_Cross_Output
{
float4 sk_FragColor : SV_Target0;
};
float4 main(float2 _21)
{
bool _49 = false;
if (atan(_7_inputVal.x) == _7_expected.x)
{
float2 _39 = atan(_7_inputVal.xy);
_49 = all(bool2(_39.x == _7_expected.xy.x, _39.y == _7_expected.xy.y));
}
else
{
_49 = false;
}
bool _63 = false;
if (_49)
{
float3 _52 = atan(_7_inputVal.xyz);
_63 = all(bool3(_52.x == _7_expected.xyz.x, _52.y == _7_expected.xyz.y, _52.z == _7_expected.xyz.z));
}
else
{
_63 = false;
}
bool _74 = false;
if (_63)
{
float4 _66 = atan(_7_inputVal);
_74 = all(bool4(_66.x == _7_expected.x, _66.y == _7_expected.y, _66.z == _7_expected.z, _66.w == _7_expected.w));
}
else
{
_74 = false;
}
bool _81 = false;
if (_74)
{
_81 = 0.0f == _7_expected.x;
}
else
{
_81 = false;
}
bool _89 = false;
if (_81)
{
_89 = all(bool2(0.0f.xx.x == _7_expected.xy.x, 0.0f.xx.y == _7_expected.xy.y));
}
else
{
_89 = false;
}
bool _98 = false;
if (_89)
{
_98 = all(bool3(0.0f.xxx.x == _7_expected.xyz.x, 0.0f.xxx.y == _7_expected.xyz.y, 0.0f.xxx.z == _7_expected.xyz.z));
}
else
{
_98 = false;
}
bool _106 = false;
if (_98)
{
_106 = all(bool4(0.0f.xxxx.x == _7_expected.x, 0.0f.xxxx.y == _7_expected.y, 0.0f.xxxx.z == _7_expected.z, 0.0f.xxxx.w == _7_expected.w));
}
else
{
_106 = false;
}
bool _118 = false;
if (_106)
{
_118 = atan2(_7_inputVal.x, 1.0f) == _7_expected.x;
}
else
{
_118 = false;
}
bool _131 = false;
if (_118)
{
float2 _121 = atan2(_7_inputVal.xy, 1.0f.xx);
_131 = all(bool2(_121.x == _7_expected.xy.x, _121.y == _7_expected.xy.y));
}
else
{
_131 = false;
}
bool _144 = false;
if (_131)
{
float3 _134 = atan2(_7_inputVal.xyz, 1.0f.xxx);
_144 = all(bool3(_134.x == _7_expected.xyz.x, _134.y == _7_expected.xyz.y, _134.z == _7_expected.xyz.z));
}
else
{
_144 = false;
}
bool _155 = false;
if (_144)
{
float4 _147 = atan2(_7_inputVal, 1.0f.xxxx);
_155 = all(bool4(_147.x == _7_expected.x, _147.y == _7_expected.y, _147.z == _7_expected.z, _147.w == _7_expected.w));
}
else
{
_155 = false;
}
bool _162 = false;
if (_155)
{
_162 = 0.0f == _7_expected.x;
}
else
{
_162 = false;
}
bool _170 = false;
if (_162)
{
_170 = all(bool2(0.0f.xx.x == _7_expected.xy.x, 0.0f.xx.y == _7_expected.xy.y));
}
else
{
_170 = false;
}
bool _178 = false;
if (_170)
{
_178 = all(bool3(0.0f.xxx.x == _7_expected.xyz.x, 0.0f.xxx.y == _7_expected.xyz.y, 0.0f.xxx.z == _7_expected.xyz.z));
}
else
{
_178 = false;
}
bool _185 = false;
if (_178)
{
_185 = all(bool4(0.0f.xxxx.x == _7_expected.x, 0.0f.xxxx.y == _7_expected.y, 0.0f.xxxx.z == _7_expected.z, 0.0f.xxxx.w == _7_expected.w));
}
else
{
_185 = false;
}
float4 _186 = 0.0f.xxxx;
if (_185)
{
_186 = _7_colorGreen;
}
else
{
_186 = _7_colorRed;
}
return _186;
}
void frag_main()
{
float2 _17 = 0.0f.xx;
sk_FragColor = main(_17);
}
SPIRV_Cross_Output main()
{
frag_main();
SPIRV_Cross_Output stage_output;
stage_output.sk_FragColor = sk_FragColor;
return stage_output;
}