| 1 |
#include <metal_stdlib> |
| 2 |
#include <simd/simd.h> |
| 3 |
|
| 4 |
using namespace metal; |
| 5 |
|
| 6 |
struct main0_out |
| 7 |
{ |
| 8 |
int FragColor [[color(0)]]; |
| 9 |
}; |
| 10 |
|
| 11 |
fragment main0_out main0() |
| 12 |
{ |
| 13 |
main0_out out = {}; |
| 14 |
out.FragColor = 16; |
| 15 |
for (int i = 0; i < 25; i++) |
| 16 |
{ |
| 17 |
out.FragColor += 10; |
| 18 |
} |
| 19 |
for (int i_1 = 1, j = 4; i_1 < 30; i_1++, j += 4) |
| 20 |
{ |
| 21 |
out.FragColor += 11; |
| 22 |
} |
| 23 |
int k = 0; |
| 24 |
for (; k < 20; k++) |
| 25 |
{ |
| 26 |
out.FragColor += 12; |
| 27 |
} |
| 28 |
k += 3; |
| 29 |
out.FragColor += k; |
| 30 |
int l; |
| 31 |
if (k == 40) |
| 32 |
{ |
| 33 |
l = 0; |
| 34 |
for (; l < 40; l++) |
| 35 |
{ |
| 36 |
out.FragColor += 13; |
| 37 |
} |
| 38 |
return out; |
| 39 |
} |
| 40 |
else |
| 41 |
{ |
| 42 |
l = k; |
| 43 |
out.FragColor += l; |
| 44 |
} |
| 45 |
int2 i_2 = int2(0); |
| 46 |
for (; i_2.x < 10; i_2.x += 4) |
| 47 |
{ |
| 48 |
out.FragColor += i_2.y; |
| 49 |
} |
| 50 |
int o = k; |
| 51 |
for (int m = k; m < 40; m++) |
| 52 |
{ |
| 53 |
out.FragColor += m; |
| 54 |
} |
| 55 |
out.FragColor += o; |
| 56 |
return out; |
| 57 |
} |
| 58 |
|