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

15 lines
173 B
GLSL
Raw Normal View History

2016-12-16 01:19:54 +03:00
void foo(float f)
{
if (f < 1.0)
discard;
}
void PixelShaderFunction(float4 input) : COLOR0
{
foo(input.z);
if (input.x)
discard;
float f = input.x;
discard;
}