aboutsummaryrefslogtreecommitdiff
path: root/Test/baseResults/hlsl.struct.split.call.vert.out
blob: 2570552e4b2cbd8a9ea19718647d9fcb93041627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
hlsl.struct.split.call.vert
Shader version: 500
0:? Sequence
0:17  Function Definition: Fn1(struct-VS_INPUT-i1-vf4-i11;struct-VS_OUTPUT-i1-vf4-i11; ( temp void)
0:17    Function Parameters: 
0:17      'fn1_in' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:17      'fn1_out' ( in structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:?     Sequence
0:18      add ( temp 4-component vector of float)
0:18        Pos_in: direct index for structure ( temp 4-component vector of float)
0:18          'fn1_in' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:18          Constant:
0:18            1 (const int)
0:18        Pos_out: direct index for structure ( temp 4-component vector of float)
0:18          'fn1_out' ( in structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:18          Constant:
0:18            1 (const int)
0:22  Function Definition: @main(struct-VS_INPUT-i1-vf4-i11; ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22    Function Parameters: 
0:22      'vsin' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:?     Sequence
0:25      move second child to first child ( temp int)
0:25        x0_out: direct index for structure ( temp int)
0:25          'vsout' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:25          Constant:
0:25            0 (const int)
0:25        x0_in: direct index for structure ( temp int)
0:25          'vsin' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:25          Constant:
0:25            0 (const int)
0:26      move second child to first child ( temp 4-component vector of float)
0:26        Pos_out: direct index for structure ( temp 4-component vector of float)
0:26          'vsout' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:26          Constant:
0:26            1 (const int)
0:26        Pos_in: direct index for structure ( temp 4-component vector of float)
0:26          'vsin' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:26          Constant:
0:26            1 (const int)
0:27      move second child to first child ( temp int)
0:27        x1_out: direct index for structure ( temp int)
0:27          'vsout' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:27          Constant:
0:27            2 (const int)
0:27        x1_in: direct index for structure ( temp int)
0:27          'vsin' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:27          Constant:
0:27            2 (const int)
0:29      Function Call: Fn1(struct-VS_INPUT-i1-vf4-i11;struct-VS_OUTPUT-i1-vf4-i11; ( temp void)
0:29        'vsin' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:29        'vsout' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:31      Branch: Return with expression
0:31        'vsout' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22  Function Definition: main( ( temp void)
0:22    Function Parameters: 
0:?     Sequence
0:22      Sequence
0:22        move second child to first child ( temp int)
0:22          x0_in: direct index for structure ( temp int)
0:?             'vsin' ( temp structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:22            Constant:
0:22              0 (const int)
0:?           'vsin.x0_in' (layout( location=0) in int)
0:22        move second child to first child ( temp 4-component vector of float)
0:22          Pos_in: direct index for structure ( temp 4-component vector of float)
0:?             'vsin' ( temp structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:22            Constant:
0:22              1 (const int)
0:?           'vsin.Pos_in' (layout( location=1) in 4-component vector of float)
0:22        move second child to first child ( temp int)
0:22          x1_in: direct index for structure ( temp int)
0:?             'vsin' ( temp structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:22            Constant:
0:22              2 (const int)
0:?           'vsin.x1_in' (layout( location=2) in int)
0:22      Sequence
0:22        move second child to first child ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22          'flattenTemp' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22          Function Call: @main(struct-VS_INPUT-i1-vf4-i11; ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:?             'vsin' ( temp structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:22        move second child to first child ( temp int)
0:?           '@entryPointOutput.x0_out' (layout( location=0) out int)
0:22          x0_out: direct index for structure ( temp int)
0:22            'flattenTemp' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22            Constant:
0:22              0 (const int)
0:22        move second child to first child ( temp 4-component vector of float)
0:?           '@entryPointOutput.Pos_out' ( out 4-component vector of float Position)
0:22          Pos_out: direct index for structure ( temp 4-component vector of float)
0:22            'flattenTemp' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22            Constant:
0:22              1 (const int)
0:22        move second child to first child ( temp int)
0:?           '@entryPointOutput.x1_out' (layout( location=1) out int)
0:22          x1_out: direct index for structure ( temp int)
0:22            'flattenTemp' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22            Constant:
0:22              2 (const int)
0:?   Linker Objects
0:?     '@entryPointOutput.Pos_out' ( out 4-component vector of float Position)
0:?     '@entryPointOutput.x0_out' (layout( location=0) out int)
0:?     '@entryPointOutput.x1_out' (layout( location=1) out int)
0:?     'vsin.x0_in' (layout( location=0) in int)
0:?     'vsin.Pos_in' (layout( location=1) in 4-component vector of float)
0:?     'vsin.x1_in' (layout( location=2) in int)


Linked vertex stage:


Shader version: 500
0:? Sequence
0:17  Function Definition: Fn1(struct-VS_INPUT-i1-vf4-i11;struct-VS_OUTPUT-i1-vf4-i11; ( temp void)
0:17    Function Parameters: 
0:17      'fn1_in' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:17      'fn1_out' ( in structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:?     Sequence
0:18      add ( temp 4-component vector of float)
0:18        Pos_in: direct index for structure ( temp 4-component vector of float)
0:18          'fn1_in' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:18          Constant:
0:18            1 (const int)
0:18        Pos_out: direct index for structure ( temp 4-component vector of float)
0:18          'fn1_out' ( in structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:18          Constant:
0:18            1 (const int)
0:22  Function Definition: @main(struct-VS_INPUT-i1-vf4-i11; ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22    Function Parameters: 
0:22      'vsin' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:?     Sequence
0:25      move second child to first child ( temp int)
0:25        x0_out: direct index for structure ( temp int)
0:25          'vsout' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:25          Constant:
0:25            0 (const int)
0:25        x0_in: direct index for structure ( temp int)
0:25          'vsin' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:25          Constant:
0:25            0 (const int)
0:26      move second child to first child ( temp 4-component vector of float)
0:26        Pos_out: direct index for structure ( temp 4-component vector of float)
0:26          'vsout' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:26          Constant:
0:26            1 (const int)
0:26        Pos_in: direct index for structure ( temp 4-component vector of float)
0:26          'vsin' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:26          Constant:
0:26            1 (const int)
0:27      move second child to first child ( temp int)
0:27        x1_out: direct index for structure ( temp int)
0:27          'vsout' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:27          Constant:
0:27            2 (const int)
0:27        x1_in: direct index for structure ( temp int)
0:27          'vsin' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:27          Constant:
0:27            2 (const int)
0:29      Function Call: Fn1(struct-VS_INPUT-i1-vf4-i11;struct-VS_OUTPUT-i1-vf4-i11; ( temp void)
0:29        'vsin' ( in structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:29        'vsout' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:31      Branch: Return with expression
0:31        'vsout' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22  Function Definition: main( ( temp void)
0:22    Function Parameters: 
0:?     Sequence
0:22      Sequence
0:22        move second child to first child ( temp int)
0:22          x0_in: direct index for structure ( temp int)
0:?             'vsin' ( temp structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:22            Constant:
0:22              0 (const int)
0:?           'vsin.x0_in' (layout( location=0) in int)
0:22        move second child to first child ( temp 4-component vector of float)
0:22          Pos_in: direct index for structure ( temp 4-component vector of float)
0:?             'vsin' ( temp structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:22            Constant:
0:22              1 (const int)
0:?           'vsin.Pos_in' (layout( location=1) in 4-component vector of float)
0:22        move second child to first child ( temp int)
0:22          x1_in: direct index for structure ( temp int)
0:?             'vsin' ( temp structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:22            Constant:
0:22              2 (const int)
0:?           'vsin.x1_in' (layout( location=2) in int)
0:22      Sequence
0:22        move second child to first child ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22          'flattenTemp' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22          Function Call: @main(struct-VS_INPUT-i1-vf4-i11; ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:?             'vsin' ( temp structure{ temp int x0_in,  temp 4-component vector of float Pos_in,  temp int x1_in})
0:22        move second child to first child ( temp int)
0:?           '@entryPointOutput.x0_out' (layout( location=0) out int)
0:22          x0_out: direct index for structure ( temp int)
0:22            'flattenTemp' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22            Constant:
0:22              0 (const int)
0:22        move second child to first child ( temp 4-component vector of float)
0:?           '@entryPointOutput.Pos_out' ( out 4-component vector of float Position)
0:22          Pos_out: direct index for structure ( temp 4-component vector of float)
0:22            'flattenTemp' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22            Constant:
0:22              1 (const int)
0:22        move second child to first child ( temp int)
0:?           '@entryPointOutput.x1_out' (layout( location=1) out int)
0:22          x1_out: direct index for structure ( temp int)
0:22            'flattenTemp' ( temp structure{ temp int x0_out,  temp 4-component vector of float Pos_out,  temp int x1_out})
0:22            Constant:
0:22              2 (const int)
0:?   Linker Objects
0:?     '@entryPointOutput.Pos_out' ( out 4-component vector of float Position)
0:?     '@entryPointOutput.x0_out' (layout( location=0) out int)
0:?     '@entryPointOutput.x1_out' (layout( location=1) out int)
0:?     'vsin.x0_in' (layout( location=0) in int)
0:?     'vsin.Pos_in' (layout( location=1) in 4-component vector of float)
0:?     'vsin.x1_in' (layout( location=2) in int)

// Module Version 10000
// Generated by (magic number): 8000a
// Id's are bound by 77

                              Capability Shader
               1:             ExtInstImport  "GLSL.std.450"
                              MemoryModel Logical GLSL450
                              EntryPoint Vertex 4  "main" 52 56 59 67 71 74
                              Source HLSL 500
                              Name 4  "main"
                              Name 9  "VS_INPUT"
                              MemberName 9(VS_INPUT) 0  "x0_in"
                              MemberName 9(VS_INPUT) 1  "Pos_in"
                              MemberName 9(VS_INPUT) 2  "x1_in"
                              Name 11  "VS_OUTPUT"
                              MemberName 11(VS_OUTPUT) 0  "x0_out"
                              MemberName 11(VS_OUTPUT) 1  "Pos_out"
                              MemberName 11(VS_OUTPUT) 2  "x1_out"
                              Name 16  "Fn1(struct-VS_INPUT-i1-vf4-i11;struct-VS_OUTPUT-i1-vf4-i11;"
                              Name 14  "fn1_in"
                              Name 15  "fn1_out"
                              Name 20  "@main(struct-VS_INPUT-i1-vf4-i11;"
                              Name 19  "vsin"
                              Name 29  "vsout"
                              Name 42  "param"
                              Name 44  "param"
                              Name 50  "vsin"
                              Name 52  "vsin.x0_in"
                              Name 56  "vsin.Pos_in"
                              Name 59  "vsin.x1_in"
                              Name 62  "flattenTemp"
                              Name 63  "param"
                              Name 67  "@entryPointOutput.x0_out"
                              Name 71  "@entryPointOutput.Pos_out"
                              Name 74  "@entryPointOutput.x1_out"
                              Decorate 52(vsin.x0_in) Location 0
                              Decorate 56(vsin.Pos_in) Location 1
                              Decorate 59(vsin.x1_in) Location 2
                              Decorate 67(@entryPointOutput.x0_out) Location 0
                              Decorate 71(@entryPointOutput.Pos_out) BuiltIn Position
                              Decorate 74(@entryPointOutput.x1_out) Location 1
               2:             TypeVoid
               3:             TypeFunction 2
               6:             TypeInt 32 1
               7:             TypeFloat 32
               8:             TypeVector 7(float) 4
     9(VS_INPUT):             TypeStruct 6(int) 8(fvec4) 6(int)
              10:             TypePointer Function 9(VS_INPUT)
   11(VS_OUTPUT):             TypeStruct 6(int) 8(fvec4) 6(int)
              12:             TypePointer Function 11(VS_OUTPUT)
              13:             TypeFunction 2 10(ptr) 12(ptr)
              18:             TypeFunction 11(VS_OUTPUT) 10(ptr)
              22:      6(int) Constant 1
              23:             TypePointer Function 8(fvec4)
              30:      6(int) Constant 0
              31:             TypePointer Function 6(int)
              38:      6(int) Constant 2
              51:             TypePointer Input 6(int)
  52(vsin.x0_in):     51(ptr) Variable Input
              55:             TypePointer Input 8(fvec4)
 56(vsin.Pos_in):     55(ptr) Variable Input
  59(vsin.x1_in):     51(ptr) Variable Input
              66:             TypePointer Output 6(int)
67(@entryPointOutput.x0_out):     66(ptr) Variable Output
              70:             TypePointer Output 8(fvec4)
71(@entryPointOutput.Pos_out):     70(ptr) Variable Output
74(@entryPointOutput.x1_out):     66(ptr) Variable Output
         4(main):           2 Function None 3
               5:             Label
        50(vsin):     10(ptr) Variable Function
 62(flattenTemp):     12(ptr) Variable Function
       63(param):     10(ptr) Variable Function
              53:      6(int) Load 52(vsin.x0_in)
              54:     31(ptr) AccessChain 50(vsin) 30
                              Store 54 53
              57:    8(fvec4) Load 56(vsin.Pos_in)
              58:     23(ptr) AccessChain 50(vsin) 22
                              Store 58 57
              60:      6(int) Load 59(vsin.x1_in)
              61:     31(ptr) AccessChain 50(vsin) 38
                              Store 61 60
              64: 9(VS_INPUT) Load 50(vsin)
                              Store 63(param) 64
              65:11(VS_OUTPUT) FunctionCall 20(@main(struct-VS_INPUT-i1-vf4-i11;) 63(param)
                              Store 62(flattenTemp) 65
              68:     31(ptr) AccessChain 62(flattenTemp) 30
              69:      6(int) Load 68
                              Store 67(@entryPointOutput.x0_out) 69
              72:     23(ptr) AccessChain 62(flattenTemp) 22
              73:    8(fvec4) Load 72
                              Store 71(@entryPointOutput.Pos_out) 73
              75:     31(ptr) AccessChain 62(flattenTemp) 38
              76:      6(int) Load 75
                              Store 74(@entryPointOutput.x1_out) 76
                              Return
                              FunctionEnd
16(Fn1(struct-VS_INPUT-i1-vf4-i11;struct-VS_OUTPUT-i1-vf4-i11;):           2 Function None 13
      14(fn1_in):     10(ptr) FunctionParameter
     15(fn1_out):     12(ptr) FunctionParameter
              17:             Label
              24:     23(ptr) AccessChain 14(fn1_in) 22
              25:    8(fvec4) Load 24
              26:     23(ptr) AccessChain 15(fn1_out) 22
              27:    8(fvec4) Load 26
              28:    8(fvec4) FAdd 25 27
                              Return
                              FunctionEnd
20(@main(struct-VS_INPUT-i1-vf4-i11;):11(VS_OUTPUT) Function None 18
        19(vsin):     10(ptr) FunctionParameter
              21:             Label
       29(vsout):     12(ptr) Variable Function
       42(param):     10(ptr) Variable Function
       44(param):     12(ptr) Variable Function
              32:     31(ptr) AccessChain 19(vsin) 30
              33:      6(int) Load 32
              34:     31(ptr) AccessChain 29(vsout) 30
                              Store 34 33
              35:     23(ptr) AccessChain 19(vsin) 22
              36:    8(fvec4) Load 35
              37:     23(ptr) AccessChain 29(vsout) 22
                              Store 37 36
              39:     31(ptr) AccessChain 19(vsin) 38
              40:      6(int) Load 39
              41:     31(ptr) AccessChain 29(vsout) 38
                              Store 41 40
              43: 9(VS_INPUT) Load 19(vsin)
                              Store 42(param) 43
              45:11(VS_OUTPUT) Load 29(vsout)
                              Store 44(param) 45
              46:           2 FunctionCall 16(Fn1(struct-VS_INPUT-i1-vf4-i11;struct-VS_OUTPUT-i1-vf4-i11;) 42(param) 44(param)
              47:11(VS_OUTPUT) Load 29(vsout)
                              ReturnValue 47
                              FunctionEnd