SPIRV-Cross/reference/shaders-hlsl/frag/unary-enclose.frag
Hans-Kristian Arntzen 6ff9007311 Fix unary enclosures.
2017-07-24 10:17:19 +02:00

33 lines
571 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);
int4 a = ~(~vIn1);
bool b = false;
b = !(!b);
}
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;
}