HLSL: Attribute grammar and if-else grammar/productions.

This commit is contained in:
John Kessenich 2016-06-05 11:23:11 -06:00
parent 21472aee75
commit 0d2b6de45b
8 changed files with 456 additions and 8 deletions

28
Test/hlsl.if.frag Normal file
View file

@ -0,0 +1,28 @@
float4 PixelShaderFunction(float4 input) : COLOR0
{
if (input == input)
return input;
if (input == input)
return input;
else
return -input;
if (input == input)
;
if (input == input)
;
else
;
[flatten] if (input == input) {
return input;
}
if (input == input) {
return input;
} else {
return -input;
}
}