1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 float4 _10_testInputs : packoffset(c0); 4 float4 _10_colorGreen : packoffset(c1); 5 float4 _10_colorRed : packoffset(c2); 6}; 7 8 9static float4 sk_FragColor; 10 11struct SPIRV_Cross_Output 12{ 13 float4 sk_FragColor : SV_Target0; 14}; 15 16float4 main(float2 _24) 17{ 18 int4 expected = int4(1, 0, 0, 2); 19 bool _58 = false; 20 if (abs(int(_10_testInputs.x)) == 1) 21 { 22 int2 _44 = abs(int2(int(_10_testInputs.xy.x), int(_10_testInputs.xy.y))); 23 _58 = all(bool2(_44.x == int4(1, 0, 0, 2).xy.x, _44.y == int4(1, 0, 0, 2).xy.y)); 24 } 25 else 26 { 27 _58 = false; 28 } 29 bool _78 = false; 30 if (_58) 31 { 32 int3 _61 = abs(int3(int(_10_testInputs.xyz.x), int(_10_testInputs.xyz.y), int(_10_testInputs.xyz.z))); 33 _78 = all(bool3(_61.x == int4(1, 0, 0, 2).xyz.x, _61.y == int4(1, 0, 0, 2).xyz.y, _61.z == int4(1, 0, 0, 2).xyz.z)); 34 } 35 else 36 { 37 _78 = false; 38 } 39 bool _96 = false; 40 if (_78) 41 { 42 int4 _81 = abs(int4(int(_10_testInputs.x), int(_10_testInputs.y), int(_10_testInputs.z), int(_10_testInputs.w))); 43 _96 = all(bool4(_81.x == int4(1, 0, 0, 2).x, _81.y == int4(1, 0, 0, 2).y, _81.z == int4(1, 0, 0, 2).z, _81.w == int4(1, 0, 0, 2).w)); 44 } 45 else 46 { 47 _96 = false; 48 } 49 bool _100 = false; 50 if (_96) 51 { 52 _100 = true; 53 } 54 else 55 { 56 _100 = false; 57 } 58 bool _107 = false; 59 if (_100) 60 { 61 _107 = all(bool2(int2(1, 0).x == int4(1, 0, 0, 2).xy.x, int2(1, 0).y == int4(1, 0, 0, 2).xy.y)); 62 } 63 else 64 { 65 _107 = false; 66 } 67 bool _114 = false; 68 if (_107) 69 { 70 _114 = all(bool3(int3(1, 0, 0).x == int4(1, 0, 0, 2).xyz.x, int3(1, 0, 0).y == int4(1, 0, 0, 2).xyz.y, int3(1, 0, 0).z == int4(1, 0, 0, 2).xyz.z)); 71 } 72 else 73 { 74 _114 = false; 75 } 76 bool _117 = false; 77 if (_114) 78 { 79 _117 = true; 80 } 81 else 82 { 83 _117 = false; 84 } 85 float4 _118 = 0.0f.xxxx; 86 if (_117) 87 { 88 _118 = _10_colorGreen; 89 } 90 else 91 { 92 _118 = _10_colorRed; 93 } 94 return _118; 95} 96 97void frag_main() 98{ 99 float2 _20 = 0.0f.xx; 100 sk_FragColor = main(_20); 101} 102 103SPIRV_Cross_Output main() 104{ 105 frag_main(); 106 SPIRV_Cross_Output stage_output; 107 stage_output.sk_FragColor = sk_FragColor; 108 return stage_output; 109} 110