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

View file

@ -5,4 +5,9 @@ float4 PixelShaderFunction(float4 input) : COLOR0
[unroll] for (; input != input; ) {}
for (; input != input; ) { return -input; }
for (--input; input != input; input += 2) { return -input; }
for (;;) if (input.x > 2.0) break;
for (;;) if (input.x > 2.0) continue;
float ii;
for (int ii = -1; ii < 3; ++ii) if (ii == 2) continue;
--ii;
}