1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 float4 _7_colorGreen : packoffset(c0); 4}; 5 6 7static float4 sk_FragColor; 8 9struct SPIRV_Cross_Output 10{ 11 float4 sk_FragColor : SV_Target0; 12}; 13 14float4 main(float2 _21) 15{ 16 int _31 = int(_7_colorGreen.y); 17 int integerInput = _31; 18 if (_31 == 0) 19 { 20 return 2.1400001049041748046875f.xxxx; 21 } 22 else 23 { 24 if (_31 == 1) 25 { 26 return _7_colorGreen; 27 } 28 else 29 { 30 if (_31 == 2) 31 { 32 return float4(1.0f, 0.20000000298023223876953125f, 2.1400001049041748046875f, 1.0f); 33 } 34 else 35 { 36 if (3.1400001049041748046875f < (_7_colorGreen.x * 3.1400001049041748046875f)) 37 { 38 return 3.1400001049041748046875f.xxxx; 39 } 40 else 41 { 42 if (2.1400001049041748046875f >= (_7_colorGreen.x * 2.1400001049041748046875f)) 43 { 44 return 0.0f.xxxx; 45 } 46 else 47 { 48 return float4(1.0f, 0.0f, 0.0f, 1.0f); 49 } 50 } 51 } 52 } 53 } 54} 55 56void frag_main() 57{ 58 float2 _17 = 0.0f.xx; 59 sk_FragColor = main(_17); 60} 61 62SPIRV_Cross_Output main() 63{ 64 frag_main(); 65 SPIRV_Cross_Output stage_output; 66 stage_output.sk_FragColor = sk_FragColor; 67 return stage_output; 68} 69