mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-21 10:48:14 +00:00
000c818efb
This allows global initializers to use $Global members.
28 lines
177 B
GLSL
Executable File
28 lines
177 B
GLSL
Executable File
float4 a;
|
|
float b;
|
|
static float4 m = a * 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; |