HLSL: Airplane work: break/continue/discard grammar, and decls for for/if/while.

This commit is contained in:
John Kessenich 2016-06-20 01:22:38 -06:00
parent a4a4d5e22c
commit 5bc4d9a26f
9 changed files with 522 additions and 39 deletions

14
Test/hlsl.discard.frag Normal file
View 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;
}