HLSL: Attribute grammar and if-else grammar/productions.
This commit is contained in:
parent
21472aee75
commit
0d2b6de45b
8 changed files with 456 additions and 8 deletions
28
Test/hlsl.if.frag
Normal file
28
Test/hlsl.if.frag
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue