Add amend ability for anonymous blocks, so they can grow between function bodies.
This commit is contained in:
parent
16738a3632
commit
df98cc26d5
7 changed files with 298 additions and 34 deletions
28
Test/hlsl.amend.frag
Executable file
28
Test/hlsl.amend.frag
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
float4 a;
|
||||
float b;
|
||||
|
||||
void f1()
|
||||
{
|
||||
a * b;
|
||||
}
|
||||
|
||||
float3 c;
|
||||
|
||||
void f2()
|
||||
{
|
||||
a.x + b + c.x;
|
||||
}
|
||||
|
||||
void f3()
|
||||
{
|
||||
c;
|
||||
}
|
||||
|
||||
int d;
|
||||
|
||||
void f4()
|
||||
{
|
||||
d * a;
|
||||
}
|
||||
|
||||
int e;
|
||||
Loading…
Add table
Add a link
Reference in a new issue