1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 float4 _7_testInputs : packoffset(c0); 4 float4 _7_colorGreen : packoffset(c1); 5 float4 _7_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 _21) 17{ 18 int4 expected = int4(1, 0, 0, 2); 19 bool _56 = false; 20 if (abs(int(_7_testInputs.x)) == 1) 21 { 22 int2 _42 = abs(int2(int(_7_testInputs.xy.x), int(_7_testInputs.xy.y))); 23 _56 = all(bool2(_42.x == int4(1, 0, 0, 2).xy.x, _42.y == int4(1, 0, 0, 2).xy.y)); 24 } 25 else 26 { 27 _56 = false; 28 } 29 bool _76 = false; 30 if (_56) 31 { 32 int3 _59 = abs(int3(int(_7_testInputs.xyz.x), int(_7_testInputs.xyz.y), int(_7_testInputs.xyz.z))); 33 _76 = all(bool3(_59.x == int4(1, 0, 0, 2).xyz.x, _59.y == int4(1, 0, 0, 2).xyz.y, _59.z == int4(1, 0, 0, 2).xyz.z)); 34 } 35 else 36 { 37 _76 = false; 38 } 39 bool _94 = false; 40 if (_76) 41 { 42 int4 _79 = abs(int4(int(_7_testInputs.x), int(_7_testInputs.y), int(_7_testInputs.z), int(_7_testInputs.w))); 43 _94 = all(bool4(_79.x == int4(1, 0, 0, 2).x, _79.y == int4(1, 0, 0, 2).y, _79.z == int4(1, 0, 0, 2).z, _79.w == int4(1, 0, 0, 2).w)); 44 } 45 else 46 { 47 _94 = false; 48 } 49 bool _98 = false; 50 if (_94) 51 { 52 _98 = true; 53 } 54 else 55 { 56 _98 = false; 57 } 58 bool _105 = false; 59 if (_98) 60 { 61 _105 = 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 _105 = false; 66 } 67 bool _112 = false; 68 if (_105) 69 { 70 _112 = 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 _112 = false; 75 } 76 bool _115 = false; 77 if (_112) 78 { 79 _115 = true; 80 } 81 else 82 { 83 _115 = false; 84 } 85 float4 _116 = 0.0f.xxxx; 86 if (_115) 87 { 88 _116 = _7_colorGreen; 89 } 90 else 91 { 92 _116 = _7_colorRed; 93 } 94 return _116; 95} 96 97void frag_main() 98{ 99 float2 _17 = 0.0f.xx; 100 sk_FragColor = main(_17); 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