Fix Test/hlsl.namespace.frag test case
[platform/upstream/glslang.git] / Test / baseResults / hlsl.namespace.frag.out
1 hlsl.namespace.frag
2 Shader version: 500
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:5  Function Definition: N1::getVec( ( temp 4-component vector of float)
6 0:5    Function Parameters: 
7 0:?     Sequence
8 0:5      Branch: Return with expression
9 0:5        'v1' ( global 4-component vector of float)
10 0:10  Function Definition: N2::getVec( ( temp 4-component vector of float)
11 0:10    Function Parameters: 
12 0:?     Sequence
13 0:10      Branch: Return with expression
14 0:10        'v2' ( global 4-component vector of float)
15 0:12  Function Definition: N2::N3::getVec( ( temp 4-component vector of float)
16 0:12    Function Parameters: 
17 0:?     Sequence
18 0:12      Branch: Return with expression
19 0:12        'v2' ( global 4-component vector of float)
20 0:15  Function Definition: N2::N3::C1::getVec( ( global 4-component vector of float)
21 0:15    Function Parameters: 
22 0:?     Sequence
23 0:15      Branch: Return with expression
24 0:15        'v2' ( global 4-component vector of float)
25 0:21  Function Definition: @main( ( temp 4-component vector of float)
26 0:21    Function Parameters: 
27 0:?     Sequence
28 0:22      Branch: Return with expression
29 0:22        add ( temp 4-component vector of float)
30 0:22          add ( temp 4-component vector of float)
31 0:22            add ( temp 4-component vector of float)
32 0:22              Function Call: N1::getVec( ( temp 4-component vector of float)
33 0:22              Function Call: N2::getVec( ( temp 4-component vector of float)
34 0:22            Function Call: N2::N3::getVec( ( temp 4-component vector of float)
35 0:22          vector-scale ( temp 4-component vector of float)
36 0:22            Function Call: N2::N3::C1::getVec( ( global 4-component vector of float)
37 0:22            'N2::gf' ( global float)
38 0:21  Function Definition: main( ( temp void)
39 0:21    Function Parameters: 
40 0:?     Sequence
41 0:21      move second child to first child ( temp 4-component vector of float)
42 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
43 0:21        Function Call: @main( ( temp 4-component vector of float)
44 0:?   Linker Objects
45 0:?     'v1' ( global 4-component vector of float)
46 0:?     'v2' ( global 4-component vector of float)
47 0:?     'N2::gf' ( global float)
48 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
49
50
51 Linked fragment stage:
52
53
54 Shader version: 500
55 gl_FragCoord origin is upper left
56 0:? Sequence
57 0:5  Function Definition: N1::getVec( ( temp 4-component vector of float)
58 0:5    Function Parameters: 
59 0:?     Sequence
60 0:5      Branch: Return with expression
61 0:5        'v1' ( global 4-component vector of float)
62 0:10  Function Definition: N2::getVec( ( temp 4-component vector of float)
63 0:10    Function Parameters: 
64 0:?     Sequence
65 0:10      Branch: Return with expression
66 0:10        'v2' ( global 4-component vector of float)
67 0:12  Function Definition: N2::N3::getVec( ( temp 4-component vector of float)
68 0:12    Function Parameters: 
69 0:?     Sequence
70 0:12      Branch: Return with expression
71 0:12        'v2' ( global 4-component vector of float)
72 0:15  Function Definition: N2::N3::C1::getVec( ( global 4-component vector of float)
73 0:15    Function Parameters: 
74 0:?     Sequence
75 0:15      Branch: Return with expression
76 0:15        'v2' ( global 4-component vector of float)
77 0:21  Function Definition: @main( ( temp 4-component vector of float)
78 0:21    Function Parameters: 
79 0:?     Sequence
80 0:22      Branch: Return with expression
81 0:22        add ( temp 4-component vector of float)
82 0:22          add ( temp 4-component vector of float)
83 0:22            add ( temp 4-component vector of float)
84 0:22              Function Call: N1::getVec( ( temp 4-component vector of float)
85 0:22              Function Call: N2::getVec( ( temp 4-component vector of float)
86 0:22            Function Call: N2::N3::getVec( ( temp 4-component vector of float)
87 0:22          vector-scale ( temp 4-component vector of float)
88 0:22            Function Call: N2::N3::C1::getVec( ( global 4-component vector of float)
89 0:22            'N2::gf' ( global float)
90 0:21  Function Definition: main( ( temp void)
91 0:21    Function Parameters: 
92 0:?     Sequence
93 0:21      move second child to first child ( temp 4-component vector of float)
94 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
95 0:21        Function Call: @main( ( temp 4-component vector of float)
96 0:?   Linker Objects
97 0:?     'v1' ( global 4-component vector of float)
98 0:?     'v2' ( global 4-component vector of float)
99 0:?     'N2::gf' ( global float)
100 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
101
102 // Module Version 10000
103 // Generated by (magic number): 8000a
104 // Id's are bound by 50
105
106                               Capability Shader
107                1:             ExtInstImport  "GLSL.std.450"
108                               MemoryModel Logical GLSL450
109                               EntryPoint Fragment 4  "main" 48
110                               ExecutionMode 4 OriginUpperLeft
111                               Source HLSL 500
112                               Name 4  "main"
113                               Name 9  "N1::getVec("
114                               Name 11  "N2::getVec("
115                               Name 13  "N2::N3::getVec("
116                               Name 15  "N2::N3::C1::getVec("
117                               Name 17  "@main("
118                               Name 20  "v1"
119                               Name 24  "v2"
120                               Name 41  "N2::gf"
121                               Name 48  "@entryPointOutput"
122                               Decorate 48(@entryPointOutput) Location 0
123                2:             TypeVoid
124                3:             TypeFunction 2
125                6:             TypeFloat 32
126                7:             TypeVector 6(float) 4
127                8:             TypeFunction 7(fvec4)
128               19:             TypePointer Private 7(fvec4)
129           20(v1):     19(ptr) Variable Private
130           24(v2):     19(ptr) Variable Private
131               40:             TypePointer Private 6(float)
132       41(N2::gf):     40(ptr) Variable Private
133               47:             TypePointer Output 7(fvec4)
134 48(@entryPointOutput):     47(ptr) Variable Output
135          4(main):           2 Function None 3
136                5:             Label
137               49:    7(fvec4) FunctionCall 17(@main()
138                               Store 48(@entryPointOutput) 49
139                               Return
140                               FunctionEnd
141   9(N1::getVec():    7(fvec4) Function None 8
142               10:             Label
143               21:    7(fvec4) Load 20(v1)
144                               ReturnValue 21
145                               FunctionEnd
146  11(N2::getVec():    7(fvec4) Function None 8
147               12:             Label
148               25:    7(fvec4) Load 24(v2)
149                               ReturnValue 25
150                               FunctionEnd
151 13(N2::N3::getVec():    7(fvec4) Function None 8
152               14:             Label
153               28:    7(fvec4) Load 24(v2)
154                               ReturnValue 28
155                               FunctionEnd
156 15(N2::N3::C1::getVec():    7(fvec4) Function None 8
157               16:             Label
158               31:    7(fvec4) Load 24(v2)
159                               ReturnValue 31
160                               FunctionEnd
161       17(@main():    7(fvec4) Function None 8
162               18:             Label
163               34:    7(fvec4) FunctionCall 9(N1::getVec()
164               35:    7(fvec4) FunctionCall 11(N2::getVec()
165               36:    7(fvec4) FAdd 34 35
166               37:    7(fvec4) FunctionCall 13(N2::N3::getVec()
167               38:    7(fvec4) FAdd 36 37
168               39:    7(fvec4) FunctionCall 15(N2::N3::C1::getVec()
169               42:    6(float) Load 41(N2::gf)
170               43:    7(fvec4) VectorTimesScalar 39 42
171               44:    7(fvec4) FAdd 38 43
172                               ReturnValue 44
173                               FunctionEnd