aboutsummaryrefslogtreecommitdiff
path: root/Test/baseResults/hlsl.clipdistance-5.vert.out
blob: 6dbe0a669e99d2acd533dbbd8222e02694895b9a (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
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
hlsl.clipdistance-5.vert
Shader version: 500
0:? Sequence
0:11  Function Definition: @main(struct-VS_INPUT-vf41; ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11    Function Parameters: 
0:11      'v' ( const (read only) structure{ temp 4-component vector of float Position})
0:?     Sequence
0:13      move second child to first child ( temp 4-component vector of float)
0:13        Position: direct index for structure ( temp 4-component vector of float)
0:13          'Output' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:13          Constant:
0:13            0 (const int)
0:13        Constant:
0:13          0.000000
0:13          0.000000
0:13          0.000000
0:13          0.000000
0:15      move second child to first child ( temp float)
0:15        direct index ( temp float)
0:15          direct index ( temp 2-component vector of float)
0:15            ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:15              'Output' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:15              Constant:
0:15                1 (const int)
0:15            Constant:
0:15              0 (const int)
0:15          Constant:
0:15            0 (const int)
0:15        Constant:
0:15          1.000000
0:16      move second child to first child ( temp float)
0:16        direct index ( temp float)
0:16          direct index ( temp 2-component vector of float)
0:16            ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:16              'Output' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:16              Constant:
0:16                1 (const int)
0:16            Constant:
0:16              0 (const int)
0:16          Constant:
0:16            1 (const int)
0:16        Constant:
0:16          2.000000
0:17      move second child to first child ( temp float)
0:17        direct index ( temp float)
0:17          direct index ( temp 2-component vector of float)
0:17            ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:17              'Output' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:17              Constant:
0:17                1 (const int)
0:17            Constant:
0:17              1 (const int)
0:17          Constant:
0:17            0 (const int)
0:17        Constant:
0:17          3.000000
0:18      move second child to first child ( temp float)
0:18        direct index ( temp float)
0:18          direct index ( temp 2-component vector of float)
0:18            ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:18              'Output' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:18              Constant:
0:18                1 (const int)
0:18            Constant:
0:18              1 (const int)
0:18          Constant:
0:18            1 (const int)
0:18        Constant:
0:18          4.000000
0:20      Branch: Return with expression
0:20        'Output' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11  Function Definition: main( ( temp void)
0:11    Function Parameters: 
0:?     Sequence
0:11      Sequence
0:11        move second child to first child ( temp 4-component vector of float)
0:11          Position: direct index for structure ( temp 4-component vector of float)
0:?             'v' ( temp structure{ temp 4-component vector of float Position})
0:11            Constant:
0:11              0 (const int)
0:?           'v.Position' (layout( location=0) in 4-component vector of float)
0:11      Sequence
0:11        move second child to first child ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11          'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11          Function Call: @main(struct-VS_INPUT-vf41; ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:?             'v' ( temp structure{ temp 4-component vector of float Position})
0:11        move second child to first child ( temp 4-component vector of float)
0:?           '@entryPointOutput.Position' ( out 4-component vector of float Position)
0:11          Position: direct index for structure ( temp 4-component vector of float)
0:11            'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11            Constant:
0:11              0 (const int)
0:?         Sequence
0:11          move second child to first child ( temp float)
0:11            direct index ( out float ClipDistance)
0:?               '@entryPointOutput.ClipRect' ( out 4-element array of float ClipDistance)
0:11              Constant:
0:11                0 (const int)
0:11            direct index ( temp float)
0:11              direct index ( temp 2-component vector of float)
0:11                ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:11                  'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11                  Constant:
0:11                    1 (const int)
0:11                Constant:
0:11                  0 (const int)
0:11              Constant:
0:11                0 (const int)
0:11          move second child to first child ( temp float)
0:11            direct index ( out float ClipDistance)
0:?               '@entryPointOutput.ClipRect' ( out 4-element array of float ClipDistance)
0:11              Constant:
0:11                1 (const int)
0:11            direct index ( temp float)
0:11              direct index ( temp 2-component vector of float)
0:11                ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:11                  'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11                  Constant:
0:11                    1 (const int)
0:11                Constant:
0:11                  0 (const int)
0:11              Constant:
0:11                1 (const int)
0:11          move second child to first child ( temp float)
0:11            direct index ( out float ClipDistance)
0:?               '@entryPointOutput.ClipRect' ( out 4-element array of float ClipDistance)
0:11              Constant:
0:11                2 (const int)
0:11            direct index ( temp float)
0:11              direct index ( temp 2-component vector of float)
0:11                ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:11                  'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11                  Constant:
0:11                    1 (const int)
0:11                Constant:
0:11                  1 (const int)
0:11              Constant:
0:11                0 (const int)
0:11          move second child to first child ( temp float)
0:11            direct index ( out float ClipDistance)
0:?               '@entryPointOutput.ClipRect' ( out 4-element array of float ClipDistance)
0:11              Constant:
0:11                3 (const int)
0:11            direct index ( temp float)
0:11              direct index ( temp 2-component vector of float)
0:11                ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:11                  'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11                  Constant:
0:11                    1 (const int)
0:11                Constant:
0:11                  1 (const int)
0:11              Constant:
0:11                1 (const int)
0:?   Linker Objects
0:?     '@entryPointOutput.Position' ( out 4-component vector of float Position)
0:?     'v.Position' (layout( location=0) in 4-component vector of float)
0:?     '@entryPointOutput.ClipRect' ( out 4-element array of float ClipDistance)


Linked vertex stage:


Shader version: 500
0:? Sequence
0:11  Function Definition: @main(struct-VS_INPUT-vf41; ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11    Function Parameters: 
0:11      'v' ( const (read only) structure{ temp 4-component vector of float Position})
0:?     Sequence
0:13      move second child to first child ( temp 4-component vector of float)
0:13        Position: direct index for structure ( temp 4-component vector of float)
0:13          'Output' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:13          Constant:
0:13            0 (const int)
0:13        Constant:
0:13          0.000000
0:13          0.000000
0:13          0.000000
0:13          0.000000
0:15      move second child to first child ( temp float)
0:15        direct index ( temp float)
0:15          direct index ( temp 2-component vector of float)
0:15            ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:15              'Output' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:15              Constant:
0:15                1 (const int)
0:15            Constant:
0:15              0 (const int)
0:15          Constant:
0:15            0 (const int)
0:15        Constant:
0:15          1.000000
0:16      move second child to first child ( temp float)
0:16        direct index ( temp float)
0:16          direct index ( temp 2-component vector of float)
0:16            ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:16              'Output' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:16              Constant:
0:16                1 (const int)
0:16            Constant:
0:16              0 (const int)
0:16          Constant:
0:16            1 (const int)
0:16        Constant:
0:16          2.000000
0:17      move second child to first child ( temp float)
0:17        direct index ( temp float)
0:17          direct index ( temp 2-component vector of float)
0:17            ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:17              'Output' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:17              Constant:
0:17                1 (const int)
0:17            Constant:
0:17              1 (const int)
0:17          Constant:
0:17            0 (const int)
0:17        Constant:
0:17          3.000000
0:18      move second child to first child ( temp float)
0:18        direct index ( temp float)
0:18          direct index ( temp 2-component vector of float)
0:18            ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:18              'Output' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:18              Constant:
0:18                1 (const int)
0:18            Constant:
0:18              1 (const int)
0:18          Constant:
0:18            1 (const int)
0:18        Constant:
0:18          4.000000
0:20      Branch: Return with expression
0:20        'Output' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11  Function Definition: main( ( temp void)
0:11    Function Parameters: 
0:?     Sequence
0:11      Sequence
0:11        move second child to first child ( temp 4-component vector of float)
0:11          Position: direct index for structure ( temp 4-component vector of float)
0:?             'v' ( temp structure{ temp 4-component vector of float Position})
0:11            Constant:
0:11              0 (const int)
0:?           'v.Position' (layout( location=0) in 4-component vector of float)
0:11      Sequence
0:11        move second child to first child ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11          'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11          Function Call: @main(struct-VS_INPUT-vf41; ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:?             'v' ( temp structure{ temp 4-component vector of float Position})
0:11        move second child to first child ( temp 4-component vector of float)
0:?           '@entryPointOutput.Position' ( out 4-component vector of float Position)
0:11          Position: direct index for structure ( temp 4-component vector of float)
0:11            'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11            Constant:
0:11              0 (const int)
0:?         Sequence
0:11          move second child to first child ( temp float)
0:11            direct index ( out float ClipDistance)
0:?               '@entryPointOutput.ClipRect' ( out 4-element array of float ClipDistance)
0:11              Constant:
0:11                0 (const int)
0:11            direct index ( temp float)
0:11              direct index ( temp 2-component vector of float)
0:11                ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:11                  'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11                  Constant:
0:11                    1 (const int)
0:11                Constant:
0:11                  0 (const int)
0:11              Constant:
0:11                0 (const int)
0:11          move second child to first child ( temp float)
0:11            direct index ( out float ClipDistance)
0:?               '@entryPointOutput.ClipRect' ( out 4-element array of float ClipDistance)
0:11              Constant:
0:11                1 (const int)
0:11            direct index ( temp float)
0:11              direct index ( temp 2-component vector of float)
0:11                ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:11                  'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11                  Constant:
0:11                    1 (const int)
0:11                Constant:
0:11                  0 (const int)
0:11              Constant:
0:11                1 (const int)
0:11          move second child to first child ( temp float)
0:11            direct index ( out float ClipDistance)
0:?               '@entryPointOutput.ClipRect' ( out 4-element array of float ClipDistance)
0:11              Constant:
0:11                2 (const int)
0:11            direct index ( temp float)
0:11              direct index ( temp 2-component vector of float)
0:11                ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:11                  'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11                  Constant:
0:11                    1 (const int)
0:11                Constant:
0:11                  1 (const int)
0:11              Constant:
0:11                0 (const int)
0:11          move second child to first child ( temp float)
0:11            direct index ( out float ClipDistance)
0:?               '@entryPointOutput.ClipRect' ( out 4-element array of float ClipDistance)
0:11              Constant:
0:11                3 (const int)
0:11            direct index ( temp float)
0:11              direct index ( temp 2-component vector of float)
0:11                ClipRect: direct index for structure ( temp 2-element array of 2-component vector of float)
0:11                  'flattenTemp' ( temp structure{ temp 4-component vector of float Position,  temp 2-element array of 2-component vector of float ClipRect})
0:11                  Constant:
0:11                    1 (const int)
0:11                Constant:
0:11                  1 (const int)
0:11              Constant:
0:11                1 (const int)
0:?   Linker Objects
0:?     '@entryPointOutput.Position' ( out 4-component vector of float Position)
0:?     'v.Position' (layout( location=0) in 4-component vector of float)
0:?     '@entryPointOutput.ClipRect' ( out 4-element array of float ClipDistance)

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

                              Capability Shader
                              Capability ClipDistance
               1:             ExtInstImport  "GLSL.std.450"
                              MemoryModel Logical GLSL450
                              EntryPoint Vertex 4  "main" 44 51 57
                              Source HLSL 500
                              Name 4  "main"
                              Name 8  "VS_INPUT"
                              MemberName 8(VS_INPUT) 0  "Position"
                              Name 13  "VS_OUTPUT"
                              MemberName 13(VS_OUTPUT) 0  "Position"
                              MemberName 13(VS_OUTPUT) 1  "ClipRect"
                              Name 16  "@main(struct-VS_INPUT-vf41;"
                              Name 15  "v"
                              Name 19  "Output"
                              Name 42  "v"
                              Name 44  "v.Position"
                              Name 47  "flattenTemp"
                              Name 51  "@entryPointOutput.Position"
                              Name 57  "@entryPointOutput.ClipRect"
                              Decorate 44(v.Position) Location 0
                              Decorate 51(@entryPointOutput.Position) BuiltIn Position
                              Decorate 57(@entryPointOutput.ClipRect) BuiltIn ClipDistance
               2:             TypeVoid
               3:             TypeFunction 2
               6:             TypeFloat 32
               7:             TypeVector 6(float) 4
     8(VS_INPUT):             TypeStruct 7(fvec4)
               9:             TypeVector 6(float) 2
              10:             TypeInt 32 0
              11:     10(int) Constant 2
              12:             TypeArray 9(fvec2) 11
   13(VS_OUTPUT):             TypeStruct 7(fvec4) 12
              14:             TypeFunction 13(VS_OUTPUT) 8(VS_INPUT)
              18:             TypePointer Function 13(VS_OUTPUT)
              20:             TypeInt 32 1
              21:     20(int) Constant 0
              22:    6(float) Constant 0
              23:    7(fvec4) ConstantComposite 22 22 22 22
              24:             TypePointer Function 7(fvec4)
              26:     20(int) Constant 1
              27:    6(float) Constant 1065353216
              28:     10(int) Constant 0
              29:             TypePointer Function 6(float)
              31:    6(float) Constant 1073741824
              32:     10(int) Constant 1
              34:    6(float) Constant 1077936128
              36:    6(float) Constant 1082130432
              41:             TypePointer Function 8(VS_INPUT)
              43:             TypePointer Input 7(fvec4)
  44(v.Position):     43(ptr) Variable Input
              50:             TypePointer Output 7(fvec4)
51(@entryPointOutput.Position):     50(ptr) Variable Output
              54:     10(int) Constant 4
              55:             TypeArray 6(float) 54
              56:             TypePointer Output 55
57(@entryPointOutput.ClipRect):     56(ptr) Variable Output
              60:             TypePointer Output 6(float)
              65:     20(int) Constant 2
              69:     20(int) Constant 3
         4(main):           2 Function None 3
               5:             Label
           42(v):     41(ptr) Variable Function
 47(flattenTemp):     18(ptr) Variable Function
              45:    7(fvec4) Load 44(v.Position)
              46:     24(ptr) AccessChain 42(v) 21
                              Store 46 45
              48: 8(VS_INPUT) Load 42(v)
              49:13(VS_OUTPUT) FunctionCall 16(@main(struct-VS_INPUT-vf41;) 48
                              Store 47(flattenTemp) 49
              52:     24(ptr) AccessChain 47(flattenTemp) 21
              53:    7(fvec4) Load 52
                              Store 51(@entryPointOutput.Position) 53
              58:     29(ptr) AccessChain 47(flattenTemp) 26 21 28
              59:    6(float) Load 58
              61:     60(ptr) AccessChain 57(@entryPointOutput.ClipRect) 21
                              Store 61 59
              62:     29(ptr) AccessChain 47(flattenTemp) 26 21 32
              63:    6(float) Load 62
              64:     60(ptr) AccessChain 57(@entryPointOutput.ClipRect) 26
                              Store 64 63
              66:     29(ptr) AccessChain 47(flattenTemp) 26 26 28
              67:    6(float) Load 66
              68:     60(ptr) AccessChain 57(@entryPointOutput.ClipRect) 65
                              Store 68 67
              70:     29(ptr) AccessChain 47(flattenTemp) 26 26 32
              71:    6(float) Load 70
              72:     60(ptr) AccessChain 57(@entryPointOutput.ClipRect) 69
                              Store 72 71
                              Return
                              FunctionEnd
16(@main(struct-VS_INPUT-vf41;):13(VS_OUTPUT) Function None 14
           15(v): 8(VS_INPUT) FunctionParameter
              17:             Label
      19(Output):     18(ptr) Variable Function
              25:     24(ptr) AccessChain 19(Output) 21
                              Store 25 23
              30:     29(ptr) AccessChain 19(Output) 26 21 28
                              Store 30 27
              33:     29(ptr) AccessChain 19(Output) 26 21 32
                              Store 33 31
              35:     29(ptr) AccessChain 19(Output) 26 26 28
                              Store 35 34
              37:     29(ptr) AccessChain 19(Output) 26 26 32
                              Store 37 36
              38:13(VS_OUTPUT) Load 19(Output)
                              ReturnValue 38
                              FunctionEnd