| 1 |
static float4 FragColor; |
| 2 |
|
| 3 |
struct SPIRV_Cross_Output |
| 4 |
{ |
| 5 |
float4 FragColor : SV_Target0; |
| 6 |
}; |
| 7 |
|
| 8 |
void frag_main() |
| 9 |
{ |
| 10 |
FragColor = 0.0f.xxxx; |
| 11 |
int i = 0; |
| 12 |
int _36; |
| 13 |
for (;;) |
| 14 |
{ |
| 15 |
if (i < 3) |
| 16 |
{ |
| 17 |
int a = i; |
| 18 |
FragColor[a] += float(i); |
| 19 |
if (false) |
| 20 |
{ |
| 21 |
_36 = 1; |
| 22 |
} |
| 23 |
else |
| 24 |
{ |
| 25 |
int _41 = i; |
| 26 |
i = _41 + 1; |
| 27 |
_36 = _41; |
| 28 |
} |
| 29 |
continue; |
| 30 |
} |
| 31 |
else |
| 32 |
{ |
| 33 |
break; |
| 34 |
} |
| 35 |
} |
| 36 |
} |
| 37 |
|
| 38 |
SPIRV_Cross_Output main() |
| 39 |
{ |
| 40 |
frag_main(); |
| 41 |
SPIRV_Cross_Output stage_output; |
| 42 |
stage_output.FragColor = FragColor; |
| 43 |
return stage_output; |
| 44 |
} |