mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 12:00:05 +00:00
15 lines
173 B
GLSL
15 lines
173 B
GLSL
|
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;
|
||
|
}
|