SPIRV-Cross/reference/shaders-msl-no-opt/frag/in_block_assign.frag
Hans-Kristian Arntzen 49ac538a64 Remove maybe_assign_input_struct.
This is obsolete and wrong since we already unflatten I/O structs.
2018-09-17 13:51:02 +02:00

32 lines
433 B
GLSL

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct VOUT
{
float4 a;
};
struct main0_out
{
float4 FragColor [[color(0)]];
};
struct main0_in
{
float4 VOUT_a [[user(locn0)]];
};
fragment main0_out main0(main0_in in [[stage_in]])
{
main0_out out = {};
VOUT Clip = {};
Clip.a = in.VOUT_a;
VOUT tmp = Clip;
tmp.a += float4(1.0);
out.FragColor = tmp.a;
return out;
}