1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 float4 _10_colorGreen : packoffset(c0); 4 float4 _10_colorRed : packoffset(c1); 5 float4 _10_colorBlack : packoffset(c2); 6 float4 _10_colorWhite : packoffset(c3); 7 float4 _10_testInputs : packoffset(c4); 8}; 9 10 11static float4 sk_FragColor; 12 13struct SPIRV_Cross_Output 14{ 15 float4 sk_FragColor : SV_Target0; 16}; 17 18float4 main(float2 _24) 19{ 20 bool4 _42 = bool4(_10_colorGreen.x != 0.0f, _10_colorGreen.y != 0.0f, _10_colorGreen.z != 0.0f, _10_colorGreen.w != 0.0f); 21 bool4 FTFT = _42; 22 bool4 _44 = _42.wzyx; 23 bool4 TFTF = _44; 24 bool _91 = false; 25 if ((_42.x ? _10_colorWhite.x : _10_colorBlack.x) == _10_colorBlack.x) 26 { 27 bool2 _83 = _42.xy; 28 float2 _68 = float2(_83.x ? _10_colorWhite.xy.x : _10_colorBlack.xy.x, _83.y ? _10_colorWhite.xy.y : _10_colorBlack.xy.y); 29 float2 _88 = float2(_10_colorBlack.x, 1.0f); 30 _91 = all(bool2(_68.x == _88.x, _68.y == _88.y)); 31 } 32 else 33 { 34 _91 = false; 35 } 36 bool _120 = false; 37 if (_91) 38 { 39 bool3 _110 = _42.xyz; 40 float3 _94 = float3(_110.x ? _10_colorWhite.xyz.x : _10_colorBlack.xyz.x, _110.y ? _10_colorWhite.xyz.y : _10_colorBlack.xyz.y, _110.z ? _10_colorWhite.xyz.z : _10_colorBlack.xyz.z); 41 float3 _117 = float3(_10_colorBlack.x, 1.0f, _10_colorBlack.z); 42 _120 = all(bool3(_94.x == _117.x, _94.y == _117.y, _94.z == _117.z)); 43 } 44 else 45 { 46 _120 = false; 47 } 48 bool _141 = false; 49 if (_120) 50 { 51 float4 _123 = float4(_42.x ? _10_colorWhite.x : _10_colorBlack.x, _42.y ? _10_colorWhite.y : _10_colorBlack.y, _42.z ? _10_colorWhite.z : _10_colorBlack.z, _42.w ? _10_colorWhite.w : _10_colorBlack.w); 52 float4 _138 = float4(_10_colorBlack.x, 1.0f, _10_colorBlack.z, 1.0f); 53 _141 = all(bool4(_123.x == _138.x, _123.y == _138.y, _123.z == _138.z, _123.w == _138.w)); 54 } 55 else 56 { 57 _141 = false; 58 } 59 bool _163 = false; 60 if (_141) 61 { 62 _163 = (_44.x ? _10_testInputs.x : _10_colorWhite.x) == _10_testInputs.x; 63 } 64 else 65 { 66 _163 = false; 67 } 68 bool _187 = false; 69 if (_163) 70 { 71 bool2 _180 = _44.xy; 72 float2 _166 = float2(_180.x ? _10_testInputs.xy.x : _10_colorWhite.xy.x, _180.y ? _10_testInputs.xy.y : _10_colorWhite.xy.y); 73 float2 _184 = float2(_10_testInputs.x, 1.0f); 74 _187 = all(bool2(_166.x == _184.x, _166.y == _184.y)); 75 } 76 else 77 { 78 _187 = false; 79 } 80 bool _214 = false; 81 if (_187) 82 { 83 bool3 _204 = _44.xyz; 84 float3 _190 = float3(_204.x ? _10_testInputs.xyz.x : _10_colorWhite.xyz.x, _204.y ? _10_testInputs.xyz.y : _10_colorWhite.xyz.y, _204.z ? _10_testInputs.xyz.z : _10_colorWhite.xyz.z); 85 float3 _211 = float3(_10_testInputs.x, 1.0f, _10_testInputs.z); 86 _214 = all(bool3(_190.x == _211.x, _190.y == _211.y, _190.z == _211.z)); 87 } 88 else 89 { 90 _214 = false; 91 } 92 bool _235 = false; 93 if (_214) 94 { 95 float4 _217 = float4(_44.x ? _10_testInputs.x : _10_colorWhite.x, _44.y ? _10_testInputs.y : _10_colorWhite.y, _44.z ? _10_testInputs.z : _10_colorWhite.z, _44.w ? _10_testInputs.w : _10_colorWhite.w); 96 float4 _232 = float4(_10_testInputs.x, 1.0f, _10_testInputs.z, 1.0f); 97 _235 = all(bool4(_217.x == _232.x, _217.y == _232.y, _217.z == _232.z, _217.w == _232.w)); 98 } 99 else 100 { 101 _235 = false; 102 } 103 float4 _236 = 0.0f.xxxx; 104 if (_235) 105 { 106 _236 = _10_colorGreen; 107 } 108 else 109 { 110 _236 = _10_colorRed; 111 } 112 return _236; 113} 114 115void frag_main() 116{ 117 float2 _20 = 0.0f.xx; 118 sk_FragColor = main(_20); 119} 120 121SPIRV_Cross_Output main() 122{ 123 frag_main(); 124 SPIRV_Cross_Output stage_output; 125 stage_output.sk_FragColor = sk_FragColor; 126 return stage_output; 127} 128