| 1 |
static float4 FragColor; |
| 2 |
static int vA; |
| 3 |
static int vB; |
| 4 |
|
| 5 |
struct SPIRV_Cross_Input |
| 6 |
{ |
| 7 |
nointerpolation int vA : TEXCOORD0; |
| 8 |
nointerpolation int vB : TEXCOORD1; |
| 9 |
}; |
| 10 |
|
| 11 |
struct SPIRV_Cross_Output |
| 12 |
{ |
| 13 |
float4 FragColor : SV_Target0; |
| 14 |
}; |
| 15 |
|
| 16 |
void frag_main() |
| 17 |
{ |
| 18 |
FragColor = 0.0f.xxxx; |
| 19 |
int _10 = 0; |
| 20 |
int _15 = 0; |
| 21 |
for (int _16 = 0, _17 = 0; _16 < vA; _17 = _15, _16 += _10) |
| 22 |
{ |
| 23 |
if ((vA + _16) == 20) |
| 24 |
{ |
| 25 |
_15 = 50; |
| 26 |
} |
| 27 |
else |
| 28 |
{ |
| 29 |
_15 = ((vB + _16) == 40) ? 60 : _17; |
| 30 |
} |
| 31 |
_10 = _15 + 10; |
| 32 |
FragColor += 1.0f.xxxx; |
| 33 |
} |
| 34 |
} |
| 35 |
|
| 36 |
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) |
| 37 |
{ |
| 38 |
vA = stage_input.vA; |
| 39 |
vB = stage_input.vB; |
| 40 |
frag_main(); |
| 41 |
SPIRV_Cross_Output stage_output; |
| 42 |
stage_output.FragColor = FragColor; |
| 43 |
return stage_output; |
| 44 |
} |