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-07-05 11:25:57 +00:00
|
|
|
for (int i = 0; i < 4; i++, out.FragColor += float4(_17[i]))
|
2018-03-07 13:54:11 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|