| 1 |
#include <metal_stdlib> |
| 2 |
#include <simd/simd.h> |
| 3 |
|
| 4 |
using namespace metal; |
| 5 |
|
| 6 |
struct main0_out |
| 7 |
{ |
| 8 |
float4 FragColor [[color(0)]]; |
| 9 |
}; |
| 10 |
|
| 11 |
fragment main0_out main0() |
| 12 |
{ |
| 13 |
main0_out out = {}; |
| 14 |
out.FragColor = float4(0.0); |
| 15 |
int i = 0; |
| 16 |
int _36; |
| 17 |
for (;;) |
| 18 |
{ |
| 19 |
if (i < 3) |
| 20 |
{ |
| 21 |
int a = i; |
| 22 |
out.FragColor[a] += float(i); |
| 23 |
if (false) |
| 24 |
{ |
| 25 |
_36 = 1; |
| 26 |
} |
| 27 |
else |
| 28 |
{ |
| 29 |
int _41 = i; |
| 30 |
i = _41 + 1; |
| 31 |
_36 = _41; |
| 32 |
} |
| 33 |
continue; |
| 34 |
} |
| 35 |
else |
| 36 |
{ |
| 37 |
break; |
| 38 |
} |
| 39 |
} |
| 40 |
return out; |
| 41 |
} |
| 42 |
|