HLSL: Airplane work: break/continue/discard grammar, and decls for for/if/while.
This commit is contained in:
parent
a4a4d5e22c
commit
5bc4d9a26f
9 changed files with 522 additions and 39 deletions
14
Test/hlsl.discard.frag
Normal file
14
Test/hlsl.discard.frag
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
void foo(float f)
|
||||
{
|
||||
if (f < 1.0)
|
||||
discard;
|
||||
}
|
||||
|
||||
float4 PixelShaderFunction(float4 input) : COLOR0
|
||||
{
|
||||
foo(input.z);
|
||||
if (input.x)
|
||||
discard;
|
||||
float f = input.x;
|
||||
discard;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue