| 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 |
void frag_main() |
| 15 |
{ |
| 16 |
float4 _33; |
| 17 |
for (;;) |
| 18 |
{ |
| 19 |
if (counter == 10) |
| 20 |
{ |
| 21 |
_33 = 10.0f.xxxx; |
| 22 |
break; |
| 23 |
} |
| 24 |
else |
| 25 |
{ |
| 26 |
_33 = 30.0f.xxxx; |
| 27 |
break; |
| 28 |
} |
| 29 |
} |
| 30 |
FragColor = _33; |
| 31 |
} |
| 32 |
|
| 33 |
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) |
| 34 |
{ |
| 35 |
counter = stage_input.counter; |
| 36 |
frag_main(); |
| 37 |
SPIRV_Cross_Output stage_output; |
| 38 |
stage_output.FragColor = FragColor; |
| 39 |
return stage_output; |
| 40 |
} |