mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 19:40:06 +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; |