2018-03-07 13:54:11 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
2018-09-10 08:04:17 +00:00
|
|
|
constant float _17[5] = { 1.0, 2.0, 3.0, 4.0, 5.0 };
|
2018-03-07 13:54:11 +00:00
|
|
|
|
|
|
|
struct main0_out
|
|
|
|
{
|
|
|
|
float4 FragColor [[color(0)]];
|
|
|
|
};
|
|
|
|
|
|
|
|
fragment main0_out main0()
|
|
|
|
{
|
|
|
|
main0_out out = {};
|
2018-03-12 13:58:40 +00:00
|
|
|
for (int _46 = 0; _46 < 4; )
|
2018-03-07 13:54:11 +00:00
|
|
|
{
|
2018-03-12 13:58:40 +00:00
|
|
|
int _33 = _46 + 1;
|
2018-07-05 11:25:57 +00:00
|
|
|
out.FragColor += float4(_17[_33]);
|
2018-03-12 13:58:40 +00:00
|
|
|
_46 = _33;
|
|
|
|
continue;
|
2018-03-07 13:54:11 +00:00
|
|
|
}
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|