SPIRV-Cross/reference/shaders-msl/frag/in_block.frag
2019-09-17 15:11:19 -04:00

36 lines
660 B
GLSL

#pragma clang diagnostic ignored "-Wmissing-braces"
#pragma clang diagnostic ignored "-Wunused-variable"
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct VertexOut
{
float4 color;
float4 color2;
};
struct main0_out
{
float4 FragColor [[color(0)]];
};
struct main0_in
{
float4 VertexOut_color [[user(locn2)]];
float4 VertexOut_color2 [[user(locn3)]];
};
fragment main0_out main0(main0_in in [[stage_in]])
{
main0_out out = {};
VertexOut inputs = {};
inputs.color = in.VertexOut_color;
inputs.color2 = in.VertexOut_color2;
out.FragColor = inputs.color + inputs.color2;
return out;
}