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