1static float FragColor; 2static float vColor; 3 4struct SPIRV_Cross_Input 5{ 6 float vColor : TEXCOORD0; 7}; 8 9struct SPIRV_Cross_Output 10{ 11 float FragColor : SV_Target0; 12}; 13 14#line 8 "test.frag" 15void frag_main() 16{ 17#line 8 "test.frag" 18 FragColor = 1.0f; 19#line 9 "test.frag" 20 FragColor = 2.0f; 21#line 10 "test.frag" 22 if (vColor < 0.0f) 23 { 24#line 12 "test.frag" 25 FragColor = 3.0f; 26 } 27 else 28 { 29#line 16 "test.frag" 30 FragColor = 4.0f; 31 } 32#line 19 "test.frag" 33 for (int _127 = 0; float(_127) < (40.0f + vColor); ) 34 { 35#line 21 "test.frag" 36 FragColor += 0.20000000298023223876953125f; 37#line 22 "test.frag" 38 FragColor += 0.300000011920928955078125f; 39#line 19 "test.frag" 40 _127 += (int(vColor) + 5); 41 continue; 42 } 43#line 25 "test.frag" 44 switch (int(vColor)) 45 { 46 case 0: 47 { 48#line 28 "test.frag" 49 FragColor += 0.20000000298023223876953125f; 50#line 29 "test.frag" 51 break; 52 } 53 case 1: 54 { 55#line 32 "test.frag" 56 FragColor += 0.4000000059604644775390625f; 57#line 33 "test.frag" 58 break; 59 } 60 default: 61 { 62#line 36 "test.frag" 63 FragColor += 0.800000011920928955078125f; 64#line 37 "test.frag" 65 break; 66 } 67 } 68 for (;;) 69 { 70#line 42 "test.frag" 71 FragColor += (10.0f + vColor); 72#line 43 "test.frag" 73#line 42 "test.frag" 74#line 43 "test.frag" 75 if (FragColor < 100.0f) 76 { 77 } 78 else 79 { 80 break; 81 } 82 } 83#line 48 "test.frag" 84} 85 86SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) 87{ 88 vColor = stage_input.vColor; 89 frag_main(); 90 SPIRV_Cross_Output stage_output; 91 stage_output.FragColor = FragColor; 92 return stage_output; 93} 94