xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/hlsl.namespace.frag (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1static float4 v1;
2static float4 v2;
3
4namespace N1 {
5    float4 getVec() { return v1; }
6}
7
8namespace N2 {
9    static float gf;
10    float4 getVec() { return v2; }
11    namespace N3 {
12        float4 getVec() { return v2; }
13
14        class C1 {
15            static float4 getVec() { return v2; }
16        };
17    }
18}
19
20float4 main() : SV_Target0
21{
22    return N1::getVec() + N2::getVec() + N2::N3::getVec() + N2::N3::C1::getVec() * N2::gf;
23}
24