SPIRV-Cross/reference/opt/shaders-hlsl/frag/unary-enclose.frag
2017-11-23 09:50:11 +01:00

30 lines
513 B
GLSL

static float4 FragColor;
static float4 vIn;
static int4 vIn1;
struct SPIRV_Cross_Input
{
float4 vIn : TEXCOORD0;
nointerpolation int4 vIn1 : TEXCOORD1;
};
struct SPIRV_Cross_Output
{
float4 FragColor : SV_Target0;
};
void frag_main()
{
FragColor = -(-vIn);
}
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
{
vIn = stage_input.vIn;
vIn1 = stage_input.vIn1;
frag_main();
SPIRV_Cross_Output stage_output;
stage_output.FragColor = FragColor;
return stage_output;
}