bgfx/3rdparty/glslang/Test/hlsl.if.frag
Branimir Karadžić f46d6a5803 Added glslang.
2016-12-15 14:19:54 -08:00

34 lines
507 B
GLSL

float4 PixelShaderFunction(float4 input) : COLOR0
{
if (all(input == input))
return input;
if (all(input == input))
return input;
else
return -input;
if (all(input == input))
;
if (all(input == input))
;
else
;
[flatten] if (all(input == input)) {
return input;
}
if (all(input == input)) {
return input;
} else {
return -input;
}
int ii;
if (float ii = input.z)
++ii;
++ii;
}