HLSL: Implement proper nesting of symbol-table scopes and identifier searching.
This commit is contained in:
parent
71351de879
commit
077e052a8f
9 changed files with 204 additions and 51 deletions
30
Test/hlsl.scope.frag
Normal file
30
Test/hlsl.scope.frag
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
float4 PixelShaderFunction(float4 input) : COLOR0
|
||||
{
|
||||
int x;
|
||||
x;
|
||||
{
|
||||
float x;
|
||||
x;
|
||||
{
|
||||
bool x;
|
||||
x;
|
||||
{
|
||||
float3 x;
|
||||
x;
|
||||
}
|
||||
x;
|
||||
}
|
||||
x;
|
||||
}
|
||||
x;
|
||||
|
||||
if (x > 0)
|
||||
bool x;
|
||||
|
||||
while (x > 0)
|
||||
bool x;
|
||||
|
||||
do {
|
||||
bool x;
|
||||
} while (x > 0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue