SPIRV-Cross/reference/shaders-msl-no-opt/frag/in_block_assign.frag

32 lines
433 B
GLSL
Raw Normal View History

2018-03-13 09:46:55 +00:00
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct VOUT
{
float4 a;
};
struct main0_out
2018-03-13 09:46:55 +00:00
{
float4 FragColor [[color(0)]];
2018-03-13 09:46:55 +00:00
};
struct main0_in
2018-03-13 09:46:55 +00:00
{
float4 Clip_a [[user(locn0)]];
2018-03-13 09:46:55 +00:00
};
fragment main0_out main0(main0_in in [[stage_in]])
{
main0_out out = {};
VOUT Clip = {};
Clip.a = in.Clip_a;
VOUT tmp = Clip;
2018-03-13 09:46:55 +00:00
tmp.a += float4(1.0);
out.FragColor = tmp.a;
return out;
}