| cbuffer _UniformBuffer : register(b0, space0) |
| { |
| float4 _10_inputVal : packoffset(c0); |
| float4 _10_expected : 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) |
| { |
| bool _51 = false; |
| if (atan(_10_inputVal.x) == _10_expected.x) |
| { |
| float2 _41 = atan(_10_inputVal.xy); |
| _51 = all(bool2(_41.x == _10_expected.xy.x, _41.y == _10_expected.xy.y)); |
| } |
| else |
| { |
| _51 = false; |
| } |
| bool _65 = false; |
| if (_51) |
| { |
| float3 _54 = atan(_10_inputVal.xyz); |
| _65 = all(bool3(_54.x == _10_expected.xyz.x, _54.y == _10_expected.xyz.y, _54.z == _10_expected.xyz.z)); |
| } |
| else |
| { |
| _65 = false; |
| } |
| bool _76 = false; |
| if (_65) |
| { |
| float4 _68 = atan(_10_inputVal); |
| _76 = all(bool4(_68.x == _10_expected.x, _68.y == _10_expected.y, _68.z == _10_expected.z, _68.w == _10_expected.w)); |
| } |
| else |
| { |
| _76 = false; |
| } |
| bool _83 = false; |
| if (_76) |
| { |
| _83 = 0.0f == _10_expected.x; |
| } |
| else |
| { |
| _83 = false; |
| } |
| bool _91 = false; |
| if (_83) |
| { |
| _91 = all(bool2(0.0f.xx.x == _10_expected.xy.x, 0.0f.xx.y == _10_expected.xy.y)); |
| } |
| else |
| { |
| _91 = false; |
| } |
| bool _100 = false; |
| if (_91) |
| { |
| _100 = all(bool3(0.0f.xxx.x == _10_expected.xyz.x, 0.0f.xxx.y == _10_expected.xyz.y, 0.0f.xxx.z == _10_expected.xyz.z)); |
| } |
| else |
| { |
| _100 = false; |
| } |
| bool _108 = false; |
| if (_100) |
| { |
| _108 = all(bool4(0.0f.xxxx.x == _10_expected.x, 0.0f.xxxx.y == _10_expected.y, 0.0f.xxxx.z == _10_expected.z, 0.0f.xxxx.w == _10_expected.w)); |
| } |
| else |
| { |
| _108 = false; |
| } |
| bool _120 = false; |
| if (_108) |
| { |
| _120 = atan2(_10_inputVal.x, 1.0f) == _10_expected.x; |
| } |
| else |
| { |
| _120 = false; |
| } |
| bool _133 = false; |
| if (_120) |
| { |
| float2 _123 = atan2(_10_inputVal.xy, 1.0f.xx); |
| _133 = all(bool2(_123.x == _10_expected.xy.x, _123.y == _10_expected.xy.y)); |
| } |
| else |
| { |
| _133 = false; |
| } |
| bool _146 = false; |
| if (_133) |
| { |
| float3 _136 = atan2(_10_inputVal.xyz, 1.0f.xxx); |
| _146 = all(bool3(_136.x == _10_expected.xyz.x, _136.y == _10_expected.xyz.y, _136.z == _10_expected.xyz.z)); |
| } |
| else |
| { |
| _146 = false; |
| } |
| bool _157 = false; |
| if (_146) |
| { |
| float4 _149 = atan2(_10_inputVal, 1.0f.xxxx); |
| _157 = all(bool4(_149.x == _10_expected.x, _149.y == _10_expected.y, _149.z == _10_expected.z, _149.w == _10_expected.w)); |
| } |
| else |
| { |
| _157 = false; |
| } |
| bool _164 = false; |
| if (_157) |
| { |
| _164 = 0.0f == _10_expected.x; |
| } |
| else |
| { |
| _164 = false; |
| } |
| bool _172 = false; |
| if (_164) |
| { |
| _172 = all(bool2(0.0f.xx.x == _10_expected.xy.x, 0.0f.xx.y == _10_expected.xy.y)); |
| } |
| else |
| { |
| _172 = false; |
| } |
| bool _180 = false; |
| if (_172) |
| { |
| _180 = all(bool3(0.0f.xxx.x == _10_expected.xyz.x, 0.0f.xxx.y == _10_expected.xyz.y, 0.0f.xxx.z == _10_expected.xyz.z)); |
| } |
| else |
| { |
| _180 = false; |
| } |
| bool _187 = false; |
| if (_180) |
| { |
| _187 = all(bool4(0.0f.xxxx.x == _10_expected.x, 0.0f.xxxx.y == _10_expected.y, 0.0f.xxxx.z == _10_expected.z, 0.0f.xxxx.w == _10_expected.w)); |
| } |
| else |
| { |
| _187 = false; |
| } |
| float4 _188 = 0.0f.xxxx; |
| if (_187) |
| { |
| _188 = _10_colorGreen; |
| } |
| else |
| { |
| _188 = _10_colorRed; |
| } |
| return _188; |
| } |
| |
| 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; |
| } |