First Commit
This commit is contained in:
14
externals/glslang/Test/hlsl.discard.frag
vendored
Normal file
14
externals/glslang/Test/hlsl.discard.frag
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user