1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 float4 _7_colorGreen : packoffset(c0); 4 float4 _7_colorRed : packoffset(c1); 5}; 6 7 8static float4 sk_FragColor; 9 10struct SPIRV_Cross_Output 11{ 12 float4 sk_FragColor : SV_Target0; 13}; 14 15float4 main(float2 _21) 16{ 17 int counter = 0; 18 for (int i = 0; i < 10; i++) 19 { 20 if (i == 0) 21 { 22 continue; 23 } 24 counter += 10; 25 } 26 float4 _49 = 0.0f.xxxx; 27 if (counter == 90) 28 { 29 _49 = _7_colorGreen; 30 } 31 else 32 { 33 _49 = _7_colorRed; 34 } 35 return _49; 36} 37 38void frag_main() 39{ 40 float2 _17 = 0.0f.xx; 41 sk_FragColor = main(_17); 42} 43 44SPIRV_Cross_Output main() 45{ 46 frag_main(); 47 SPIRV_Cross_Output stage_output; 48 stage_output.sk_FragColor = sk_FragColor; 49 return stage_output; 50} 51