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