mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-25 04:09:41 +00:00
8f9fdc986a
Unknown how extensive the semantics need to be yet. Need real feedback from workloads. This is just done as part of unifying it with the class/struct namespaces and grammar productions.
24 lines
455 B
GLSL
Executable File
24 lines
455 B
GLSL
Executable File
static float4 v1;
|
|
static float4 v2;
|
|
|
|
namespace N1 {
|
|
float4 getVec() { return v1; }
|
|
}
|
|
|
|
namespace N2 {
|
|
static float gf;
|
|
float4 getVec() { return v2; }
|
|
namespace N3 {
|
|
float4 getVec() { return v2; }
|
|
|
|
class C1 {
|
|
float4 getVec() { return v2; }
|
|
};
|
|
}
|
|
}
|
|
|
|
float4 main() : SV_Target0
|
|
{
|
|
return N1::getVec() + N2::getVec() + N2::N3::getVec() + N2::N3::C1::getVec() * N2::gf;
|
|
}
|