Add amend ability for anonymous blocks, so they can grow between function bodies.

This commit is contained in:
John Kessenich
2016-09-29 23:58:30 -06:00
parent 16738a3632
commit df98cc26d5
7 changed files with 298 additions and 34 deletions

28
Test/hlsl.amend.frag Executable file
View 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;