2017-06-21 07:55:46 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
2018-09-13 12:42:05 +00:00
|
|
|
struct VertexOut
|
|
|
|
{
|
|
|
|
float4 color;
|
|
|
|
float4 color2;
|
|
|
|
};
|
|
|
|
|
2018-06-12 15:41:35 +00:00
|
|
|
struct main0_out
|
2017-06-21 07:55:46 +00:00
|
|
|
{
|
2018-06-12 15:41:35 +00:00
|
|
|
float4 FragColor [[color(0)]];
|
2017-06-21 07:55:46 +00:00
|
|
|
};
|
|
|
|
|
2018-06-12 15:41:35 +00:00
|
|
|
struct main0_in
|
2017-06-21 07:55:46 +00:00
|
|
|
{
|
2018-06-12 15:41:35 +00:00
|
|
|
float4 VertexOut_color [[user(locn2)]];
|
|
|
|
float4 VertexOut_color2 [[user(locn3)]];
|
2017-06-21 07:55:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
fragment main0_out main0(main0_in in [[stage_in]])
|
|
|
|
{
|
|
|
|
main0_out out = {};
|
2018-09-13 12:42:05 +00:00
|
|
|
VertexOut inputs = {};
|
|
|
|
inputs.color = in.VertexOut_color;
|
|
|
|
inputs.color2 = in.VertexOut_color2;
|
|
|
|
out.FragColor = inputs.color + inputs.color2;
|
2017-06-21 07:55:46 +00:00
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|