Do not parse blocks while parsing types, instead move it to the declaration parsing. Also, add a special variable type for the case of unnamed blocks, so that we can access them directly.
9 lines
52 B
GLSL
9 lines
52 B
GLSL
uniform Foo {
|
|
int x;
|
|
int x;
|
|
};
|
|
|
|
void main()
|
|
{
|
|
}
|