Debian Codegraph @

third_party/spirv-cross/reference/shaders-hlsl/asm/frag/unreachable.asm.frag

raw
1 static int counter;
2 static float4 FragColor;
3
4 struct SPIRV_Cross_Input
5 {
6 nointerpolation int counter : TEXCOORD0;
7 };
8
9 struct SPIRV_Cross_Output
10 {
11 float4 FragColor : SV_Target0;
12 };
13
14 static float4 _21;
15
16 void frag_main()
17 {
18 float4 _24;
19 _24 = _21;
20 float4 _33;
21 for (;;)
22 {
23 if (counter == 10)
24 {
25 _33 = 10.0f.xxxx;
26 break;
27 }
28 else
29 {
30 _33 = 30.0f.xxxx;
31 break;
32 }
33 }
34 FragColor = _33;
35 }
36
37 SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
38 {
39 counter = stage_input.counter;
40 frag_main();
41 SPIRV_Cross_Output stage_output;
42 stage_output.FragColor = FragColor;
43 return stage_output;
44 }