ad185ee1e8c9aa5290edb8ecbbc8b0a69759d8d6
[platform/upstream/glslang.git] / Test / baseResults / hlsl.struct.split.assign.frag.out
1 hlsl.struct.split.assign.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:7  Function Definition: @main(i1;struct-S-f1-vf41[3]; ( temp 4-component vector of float)
6 0:7    Function Parameters: 
7 0:7      'i' ( in int)
8 0:7      'input' ( in 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
9 0:?     Sequence
10 0:9      move second child to first child ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
11 0:9        'input' ( in 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
12 0:9        'a' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
13 0:11      Branch: Return with expression
14 0:11        Constant:
15 0:11          1.000000
16 0:11          1.000000
17 0:11          1.000000
18 0:7  Function Definition: main( ( temp void)
19 0:7    Function Parameters: 
20 0:?     Sequence
21 0:7      move second child to first child ( temp int)
22 0:?         'i' ( temp int)
23 0:?         'i' (layout( location=0) in int)
24 0:7      Sequence
25 0:7        move second child to first child ( temp float)
26 0:7          f: direct index for structure ( temp float)
27 0:7            direct index ( temp structure{ temp float f,  temp 4-component vector of float pos})
28 0:?               'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
29 0:7              Constant:
30 0:7                0 (const int)
31 0:7            Constant:
32 0:7              0 (const int)
33 0:7          f: direct index for structure ( temp float)
34 0:7            direct index (layout( location=1) in structure{ temp float f})
35 0:7              'input' (layout( location=1) in 3-element array of structure{ temp float f})
36 0:7              Constant:
37 0:7                0 (const int)
38 0:7            Constant:
39 0:7              0 (const int)
40 0:7        move second child to first child ( temp 4-component vector of float)
41 0:7          pos: direct index for structure ( temp 4-component vector of float)
42 0:7            direct index ( temp structure{ temp float f,  temp 4-component vector of float pos})
43 0:?               'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
44 0:7              Constant:
45 0:7                0 (const int)
46 0:7            Constant:
47 0:7              1 (const int)
48 0:7          direct index ( in 4-component vector of float FragCoord)
49 0:?             'input_pos' ( in 3-element array of 4-component vector of float FragCoord)
50 0:7            Constant:
51 0:7              0 (const int)
52 0:7        move second child to first child ( temp float)
53 0:7          f: direct index for structure ( temp float)
54 0:7            direct index ( temp structure{ temp float f,  temp 4-component vector of float pos})
55 0:?               'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
56 0:7              Constant:
57 0:7                1 (const int)
58 0:7            Constant:
59 0:7              0 (const int)
60 0:7          f: direct index for structure ( temp float)
61 0:7            direct index (layout( location=1) in structure{ temp float f})
62 0:7              'input' (layout( location=1) in 3-element array of structure{ temp float f})
63 0:7              Constant:
64 0:7                1 (const int)
65 0:7            Constant:
66 0:7              0 (const int)
67 0:7        move second child to first child ( temp 4-component vector of float)
68 0:7          pos: direct index for structure ( temp 4-component vector of float)
69 0:7            direct index ( temp structure{ temp float f,  temp 4-component vector of float pos})
70 0:?               'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
71 0:7              Constant:
72 0:7                1 (const int)
73 0:7            Constant:
74 0:7              1 (const int)
75 0:7          direct index ( in 4-component vector of float FragCoord)
76 0:?             'input_pos' ( in 3-element array of 4-component vector of float FragCoord)
77 0:7            Constant:
78 0:7              1 (const int)
79 0:7        move second child to first child ( temp float)
80 0:7          f: direct index for structure ( temp float)
81 0:7            direct index ( temp structure{ temp float f,  temp 4-component vector of float pos})
82 0:?               'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
83 0:7              Constant:
84 0:7                2 (const int)
85 0:7            Constant:
86 0:7              0 (const int)
87 0:7          f: direct index for structure ( temp float)
88 0:7            direct index (layout( location=1) in structure{ temp float f})
89 0:7              'input' (layout( location=1) in 3-element array of structure{ temp float f})
90 0:7              Constant:
91 0:7                2 (const int)
92 0:7            Constant:
93 0:7              0 (const int)
94 0:7        move second child to first child ( temp 4-component vector of float)
95 0:7          pos: direct index for structure ( temp 4-component vector of float)
96 0:7            direct index ( temp structure{ temp float f,  temp 4-component vector of float pos})
97 0:?               'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
98 0:7              Constant:
99 0:7                2 (const int)
100 0:7            Constant:
101 0:7              1 (const int)
102 0:7          direct index ( in 4-component vector of float FragCoord)
103 0:?             'input_pos' ( in 3-element array of 4-component vector of float FragCoord)
104 0:7            Constant:
105 0:7              2 (const int)
106 0:7      move second child to first child ( temp 4-component vector of float)
107 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
108 0:7        Function Call: @main(i1;struct-S-f1-vf41[3]; ( temp 4-component vector of float)
109 0:?           'i' ( temp int)
110 0:?           'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
111 0:?   Linker Objects
112 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
113 0:?     'i' (layout( location=0) in int)
114 0:?     'input' (layout( location=1) in 3-element array of structure{ temp float f})
115 0:?     'input_pos' ( in 3-element array of 4-component vector of float FragCoord)
116
117
118 Linked fragment stage:
119
120
121 Shader version: 450
122 gl_FragCoord origin is upper left
123 0:? Sequence
124 0:7  Function Definition: @main(i1;struct-S-f1-vf41[3]; ( temp 4-component vector of float)
125 0:7    Function Parameters: 
126 0:7      'i' ( in int)
127 0:7      'input' ( in 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
128 0:?     Sequence
129 0:9      move second child to first child ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
130 0:9        'input' ( in 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
131 0:9        'a' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
132 0:11      Branch: Return with expression
133 0:11        Constant:
134 0:11          1.000000
135 0:11          1.000000
136 0:11          1.000000
137 0:7  Function Definition: main( ( temp void)
138 0:7    Function Parameters: 
139 0:?     Sequence
140 0:7      move second child to first child ( temp int)
141 0:?         'i' ( temp int)
142 0:?         'i' (layout( location=0) in int)
143 0:7      Sequence
144 0:7        move second child to first child ( temp float)
145 0:7          f: direct index for structure ( temp float)
146 0:7            direct index ( temp structure{ temp float f,  temp 4-component vector of float pos})
147 0:?               'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
148 0:7              Constant:
149 0:7                0 (const int)
150 0:7            Constant:
151 0:7              0 (const int)
152 0:7          f: direct index for structure ( temp float)
153 0:7            direct index (layout( location=1) in structure{ temp float f})
154 0:7              'input' (layout( location=1) in 3-element array of structure{ temp float f})
155 0:7              Constant:
156 0:7                0 (const int)
157 0:7            Constant:
158 0:7              0 (const int)
159 0:7        move second child to first child ( temp 4-component vector of float)
160 0:7          pos: direct index for structure ( temp 4-component vector of float)
161 0:7            direct index ( temp structure{ temp float f,  temp 4-component vector of float pos})
162 0:?               'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
163 0:7              Constant:
164 0:7                0 (const int)
165 0:7            Constant:
166 0:7              1 (const int)
167 0:7          direct index ( in 4-component vector of float FragCoord)
168 0:?             'input_pos' ( in 3-element array of 4-component vector of float FragCoord)
169 0:7            Constant:
170 0:7              0 (const int)
171 0:7        move second child to first child ( temp float)
172 0:7          f: direct index for structure ( temp float)
173 0:7            direct index ( temp structure{ temp float f,  temp 4-component vector of float pos})
174 0:?               'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
175 0:7              Constant:
176 0:7                1 (const int)
177 0:7            Constant:
178 0:7              0 (const int)
179 0:7          f: direct index for structure ( temp float)
180 0:7            direct index (layout( location=1) in structure{ temp float f})
181 0:7              'input' (layout( location=1) in 3-element array of structure{ temp float f})
182 0:7              Constant:
183 0:7                1 (const int)
184 0:7            Constant:
185 0:7              0 (const int)
186 0:7        move second child to first child ( temp 4-component vector of float)
187 0:7          pos: direct index for structure ( temp 4-component vector of float)
188 0:7            direct index ( temp structure{ temp float f,  temp 4-component vector of float pos})
189 0:?               'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
190 0:7              Constant:
191 0:7                1 (const int)
192 0:7            Constant:
193 0:7              1 (const int)
194 0:7          direct index ( in 4-component vector of float FragCoord)
195 0:?             'input_pos' ( in 3-element array of 4-component vector of float FragCoord)
196 0:7            Constant:
197 0:7              1 (const int)
198 0:7        move second child to first child ( temp float)
199 0:7          f: direct index for structure ( temp float)
200 0:7            direct index ( temp structure{ temp float f,  temp 4-component vector of float pos})
201 0:?               'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
202 0:7              Constant:
203 0:7                2 (const int)
204 0:7            Constant:
205 0:7              0 (const int)
206 0:7          f: direct index for structure ( temp float)
207 0:7            direct index (layout( location=1) in structure{ temp float f})
208 0:7              'input' (layout( location=1) in 3-element array of structure{ temp float f})
209 0:7              Constant:
210 0:7                2 (const int)
211 0:7            Constant:
212 0:7              0 (const int)
213 0:7        move second child to first child ( temp 4-component vector of float)
214 0:7          pos: direct index for structure ( temp 4-component vector of float)
215 0:7            direct index ( temp structure{ temp float f,  temp 4-component vector of float pos})
216 0:?               'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
217 0:7              Constant:
218 0:7                2 (const int)
219 0:7            Constant:
220 0:7              1 (const int)
221 0:7          direct index ( in 4-component vector of float FragCoord)
222 0:?             'input_pos' ( in 3-element array of 4-component vector of float FragCoord)
223 0:7            Constant:
224 0:7              2 (const int)
225 0:7      move second child to first child ( temp 4-component vector of float)
226 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
227 0:7        Function Call: @main(i1;struct-S-f1-vf41[3]; ( temp 4-component vector of float)
228 0:?           'i' ( temp int)
229 0:?           'input' ( temp 3-element array of structure{ temp float f,  temp 4-component vector of float pos})
230 0:?   Linker Objects
231 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
232 0:?     'i' (layout( location=0) in int)
233 0:?     'input' (layout( location=1) in 3-element array of structure{ temp float f})
234 0:?     'input_pos' ( in 3-element array of 4-component vector of float FragCoord)
235
236 // Module Version 10000
237 // Generated by (magic number): 80001
238 // Id's are bound by 73
239
240                               Capability Shader
241                1:             ExtInstImport  "GLSL.std.450"
242                               MemoryModel Logical GLSL450
243                               EntryPoint Fragment 4  "main" 32 39 48 67
244                               ExecutionMode 4 OriginUpperLeft
245                               Name 4  "main"
246                               Name 10  "S"
247                               MemberName 10(S) 0  "f"
248                               MemberName 10(S) 1  "pos"
249                               Name 18  "@main(i1;struct-S-f1-vf41[3];"
250                               Name 16  "i"
251                               Name 17  "input"
252                               Name 20  "a"
253                               Name 30  "i"
254                               Name 32  "i"
255                               Name 34  "input"
256                               Name 36  "S"
257                               MemberName 36(S) 0  "f"
258                               Name 39  "input"
259                               Name 48  "input_pos"
260                               Name 67  "@entryPointOutput"
261                               Name 68  "param"
262                               Name 70  "param"
263                               Decorate 32(i) Location 0
264                               Decorate 39(input) Location 1
265                               Decorate 48(input_pos) BuiltIn FragCoord
266                               Decorate 67(@entryPointOutput) Location 0
267                2:             TypeVoid
268                3:             TypeFunction 2
269                6:             TypeInt 32 1
270                7:             TypePointer Function 6(int)
271                8:             TypeFloat 32
272                9:             TypeVector 8(float) 4
273            10(S):             TypeStruct 8(float) 9(fvec4)
274               11:             TypeInt 32 0
275               12:     11(int) Constant 3
276               13:             TypeArray 10(S) 12
277               14:             TypePointer Function 13
278               15:             TypeFunction 9(fvec4) 7(ptr) 14(ptr)
279               22:             TypeVector 8(float) 3
280               23:    8(float) Constant 1065353216
281               24:   22(fvec3) ConstantComposite 23 23 23
282               25:             TypePointer Function 9(fvec4)
283               31:             TypePointer Input 6(int)
284            32(i):     31(ptr) Variable Input
285               35:      6(int) Constant 0
286            36(S):             TypeStruct 8(float)
287               37:             TypeArray 36(S) 12
288               38:             TypePointer Input 37
289        39(input):     38(ptr) Variable Input
290               40:             TypePointer Input 8(float)
291               43:             TypePointer Function 8(float)
292               45:      6(int) Constant 1
293               46:             TypeArray 9(fvec4) 12
294               47:             TypePointer Input 46
295    48(input_pos):     47(ptr) Variable Input
296               49:             TypePointer Input 9(fvec4)
297               59:      6(int) Constant 2
298               66:             TypePointer Output 9(fvec4)
299 67(@entryPointOutput):     66(ptr) Variable Output
300          4(main):           2 Function None 3
301                5:             Label
302            30(i):      7(ptr) Variable Function
303        34(input):     14(ptr) Variable Function
304        68(param):      7(ptr) Variable Function
305        70(param):     14(ptr) Variable Function
306               33:      6(int) Load 32(i)
307                               Store 30(i) 33
308               41:     40(ptr) AccessChain 39(input) 35 35
309               42:    8(float) Load 41
310               44:     43(ptr) AccessChain 34(input) 35 35
311                               Store 44 42
312               50:     49(ptr) AccessChain 48(input_pos) 35
313               51:    9(fvec4) Load 50
314               52:     25(ptr) AccessChain 34(input) 35 45
315                               Store 52 51
316               53:     40(ptr) AccessChain 39(input) 45 35
317               54:    8(float) Load 53
318               55:     43(ptr) AccessChain 34(input) 45 35
319                               Store 55 54
320               56:     49(ptr) AccessChain 48(input_pos) 45
321               57:    9(fvec4) Load 56
322               58:     25(ptr) AccessChain 34(input) 45 45
323                               Store 58 57
324               60:     40(ptr) AccessChain 39(input) 59 35
325               61:    8(float) Load 60
326               62:     43(ptr) AccessChain 34(input) 59 35
327                               Store 62 61
328               63:     49(ptr) AccessChain 48(input_pos) 59
329               64:    9(fvec4) Load 63
330               65:     25(ptr) AccessChain 34(input) 59 45
331                               Store 65 64
332               69:      6(int) Load 30(i)
333                               Store 68(param) 69
334               71:          13 Load 34(input)
335                               Store 70(param) 71
336               72:    9(fvec4) FunctionCall 18(@main(i1;struct-S-f1-vf41[3];) 68(param) 70(param)
337                               Store 67(@entryPointOutput) 72
338                               Return
339                               FunctionEnd
340 18(@main(i1;struct-S-f1-vf41[3];):    9(fvec4) Function None 15
341            16(i):      7(ptr) FunctionParameter
342        17(input):     14(ptr) FunctionParameter
343               19:             Label
344            20(a):     14(ptr) Variable Function
345               26:     25(ptr) Variable Function
346               21:          13 Load 20(a)
347                               Store 17(input) 21
348                               Store 26 24
349               27:    9(fvec4) Load 26
350                               ReturnValue 27
351                               FunctionEnd