bgfx/3rdparty/glslang/Test/hlsl.if.frag

36 lines
547 B
GLSL
Raw Normal View History

2016-12-16 01:19:54 +03:00
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;
2017-03-12 00:55:30 +03:00
if (float(ii) == 1.0)
++ii;
2016-12-16 01:19:54 +03:00
}