aboutsummaryrefslogtreecommitdiff
path: root/Test/baseResults/hlsl.this.frag.out
blob: e6b54cf3d459789cb5b4fcd28d61506b32f4c5aa (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
hlsl.this.frag
Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:1  Sequence
0:1    move second child to first child ( temp 2-component vector of float)
0:1      'var' ( global 2-component vector of float)
0:1      Constant:
0:1        1.000000
0:1        2.000000
0:6  Function Definition: type1::memFun1(vi3; ( temp int)
0:6    Function Parameters: 
0:6      '@this' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:6      'var' ( in 3-component vector of int)
0:?     Sequence
0:7      Branch: Return with expression
0:7        add ( temp int)
0:7          add ( temp int)
0:7            direct index ( temp int)
0:7              'var' ( in 3-component vector of int)
0:7              Constant:
0:7                2 (const int)
0:7            var: direct index for structure ( temp int)
0:7              '@this' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:7              Constant:
0:7                1 (const int)
0:7          var2: direct index for structure ( temp int)
0:7            '@this' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:7            Constant:
0:7              2 (const uint)
0:10  Function Definition: type1::memFun2(i1; ( temp int)
0:10    Function Parameters: 
0:10      '@this' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:10      'a' ( in int)
0:?     Sequence
0:11      Sequence
0:11        move second child to first child ( temp 3-component vector of int)
0:11          'var' ( temp 3-component vector of int)
0:11          Constant:
0:11            1 (const int)
0:11            2 (const int)
0:11            3 (const int)
0:12      Branch: Return with expression
0:12        add ( temp int)
0:12          add ( temp int)
0:12            direct index ( temp int)
0:12              'var' ( temp 3-component vector of int)
0:12              Constant:
0:12                2 (const int)
0:12            Convert float to int ( temp int)
0:12              direct index ( temp float)
0:12                bar: direct index for structure ( temp 2-component vector of float)
0:12                  '@this' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:12                  Constant:
0:12                    0 (const uint)
0:12                Constant:
0:12                  1 (const int)
0:12          var2: direct index for structure ( temp int)
0:12            '@this' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:12            Constant:
0:12              2 (const int)
0:20  Function Definition: @main( ( temp 4-component vector of float)
0:20    Function Parameters: 
0:?     Sequence
0:22      move second child to first child ( temp 2-component vector of float)
0:22        bar: direct index for structure ( temp 2-component vector of float)
0:22          'T' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:22          Constant:
0:22            0 (const int)
0:22        'var' ( global 2-component vector of float)
0:23      move second child to first child ( temp int)
0:23        var: direct index for structure ( temp int)
0:23          'T' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:23          Constant:
0:23            1 (const int)
0:23        Constant:
0:23          7 (const int)
0:24      move second child to first child ( temp int)
0:24        var2: direct index for structure ( temp int)
0:24          'T' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:24          Constant:
0:24            2 (const int)
0:24        Constant:
0:24          9 (const int)
0:25      Sequence
0:25        move second child to first child ( temp int)
0:25          'i' ( temp int)
0:25          Function Call: type1::memFun1(vi3; ( temp int)
0:25            'T' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:25            Constant:
0:25              10 (const int)
0:25              11 (const int)
0:25              12 (const int)
0:26      add second child into first child ( temp int)
0:26        'i' ( temp int)
0:26        Function Call: type1::memFun2(i1; ( temp int)
0:26          'T' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:26          Constant:
0:26            17 (const int)
0:28      Branch: Return with expression
0:28        Construct vec4 ( temp 4-component vector of float)
0:28          Convert int to float ( temp float)
0:28            'i' ( temp int)
0:28          Convert int to float ( temp float)
0:28            'i' ( temp int)
0:28          Convert int to float ( temp float)
0:28            'i' ( temp int)
0:28          Convert int to float ( temp float)
0:28            'i' ( temp int)
0:20  Function Definition: main( ( temp void)
0:20    Function Parameters: 
0:?     Sequence
0:20      move second child to first child ( temp 4-component vector of float)
0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
0:20        Function Call: @main( ( temp 4-component vector of float)
0:?   Linker Objects
0:?     'var' ( global 2-component vector of float)
0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)


Linked fragment stage:


Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:1  Sequence
0:1    move second child to first child ( temp 2-component vector of float)
0:1      'var' ( global 2-component vector of float)
0:1      Constant:
0:1        1.000000
0:1        2.000000
0:6  Function Definition: type1::memFun1(vi3; ( temp int)
0:6    Function Parameters: 
0:6      '@this' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:6      'var' ( in 3-component vector of int)
0:?     Sequence
0:7      Branch: Return with expression
0:7        add ( temp int)
0:7          add ( temp int)
0:7            direct index ( temp int)
0:7              'var' ( in 3-component vector of int)
0:7              Constant:
0:7                2 (const int)
0:7            var: direct index for structure ( temp int)
0:7              '@this' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:7              Constant:
0:7                1 (const int)
0:7          var2: direct index for structure ( temp int)
0:7            '@this' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:7            Constant:
0:7              2 (const uint)
0:10  Function Definition: type1::memFun2(i1; ( temp int)
0:10    Function Parameters: 
0:10      '@this' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:10      'a' ( in int)
0:?     Sequence
0:11      Sequence
0:11        move second child to first child ( temp 3-component vector of int)
0:11          'var' ( temp 3-component vector of int)
0:11          Constant:
0:11            1 (const int)
0:11            2 (const int)
0:11            3 (const int)
0:12      Branch: Return with expression
0:12        add ( temp int)
0:12          add ( temp int)
0:12            direct index ( temp int)
0:12              'var' ( temp 3-component vector of int)
0:12              Constant:
0:12                2 (const int)
0:12            Convert float to int ( temp int)
0:12              direct index ( temp float)
0:12                bar: direct index for structure ( temp 2-component vector of float)
0:12                  '@this' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:12                  Constant:
0:12                    0 (const uint)
0:12                Constant:
0:12                  1 (const int)
0:12          var2: direct index for structure ( temp int)
0:12            '@this' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:12            Constant:
0:12              2 (const int)
0:20  Function Definition: @main( ( temp 4-component vector of float)
0:20    Function Parameters: 
0:?     Sequence
0:22      move second child to first child ( temp 2-component vector of float)
0:22        bar: direct index for structure ( temp 2-component vector of float)
0:22          'T' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:22          Constant:
0:22            0 (const int)
0:22        'var' ( global 2-component vector of float)
0:23      move second child to first child ( temp int)
0:23        var: direct index for structure ( temp int)
0:23          'T' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:23          Constant:
0:23            1 (const int)
0:23        Constant:
0:23          7 (const int)
0:24      move second child to first child ( temp int)
0:24        var2: direct index for structure ( temp int)
0:24          'T' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:24          Constant:
0:24            2 (const int)
0:24        Constant:
0:24          9 (const int)
0:25      Sequence
0:25        move second child to first child ( temp int)
0:25          'i' ( temp int)
0:25          Function Call: type1::memFun1(vi3; ( temp int)
0:25            'T' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:25            Constant:
0:25              10 (const int)
0:25              11 (const int)
0:25              12 (const int)
0:26      add second child into first child ( temp int)
0:26        'i' ( temp int)
0:26        Function Call: type1::memFun2(i1; ( temp int)
0:26          'T' ( temp structure{ temp 2-component vector of float bar,  temp int var,  temp int var2})
0:26          Constant:
0:26            17 (const int)
0:28      Branch: Return with expression
0:28        Construct vec4 ( temp 4-component vector of float)
0:28          Convert int to float ( temp float)
0:28            'i' ( temp int)
0:28          Convert int to float ( temp float)
0:28            'i' ( temp int)
0:28          Convert int to float ( temp float)
0:28            'i' ( temp int)
0:28          Convert int to float ( temp float)
0:28            'i' ( temp int)
0:20  Function Definition: main( ( temp void)
0:20    Function Parameters: 
0:?     Sequence
0:20      move second child to first child ( temp 4-component vector of float)
0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
0:20        Function Call: @main( ( temp 4-component vector of float)
0:?   Linker Objects
0:?     'var' ( global 2-component vector of float)
0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)

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

                              Capability Shader
               1:             ExtInstImport  "GLSL.std.450"
                              MemoryModel Logical GLSL450
                              EntryPoint Fragment 4  "main" 96
                              ExecutionMode 4 OriginUpperLeft
                              Source HLSL 500
                              Name 4  "main"
                              Name 9  "type1"
                              MemberName 9(type1) 0  "bar"
                              MemberName 9(type1) 1  "var"
                              MemberName 9(type1) 2  "var2"
                              Name 16  "type1::memFun1(vi3;"
                              Name 14  "@this"
                              Name 15  "var"
                              Name 22  "type1::memFun2(i1;"
                              Name 20  "@this"
                              Name 21  "a"
                              Name 26  "@main("
                              Name 29  "var"
                              Name 47  "var"
                              Name 64  "T"
                              Name 72  "i"
                              Name 77  "param"
                              Name 80  "param"
                              Name 96  "@entryPointOutput"
                              Decorate 96(@entryPointOutput) Location 0
               2:             TypeVoid
               3:             TypeFunction 2
               6:             TypeFloat 32
               7:             TypeVector 6(float) 2
               8:             TypeInt 32 1
        9(type1):             TypeStruct 7(fvec2) 8(int) 8(int)
              10:             TypePointer Function 9(type1)
              11:             TypeVector 8(int) 3
              12:             TypePointer Function 11(ivec3)
              13:             TypeFunction 8(int) 10(ptr) 12(ptr)
              18:             TypePointer Function 8(int)
              19:             TypeFunction 8(int) 10(ptr) 18(ptr)
              24:             TypeVector 6(float) 4
              25:             TypeFunction 24(fvec4)
              28:             TypePointer Private 7(fvec2)
         29(var):     28(ptr) Variable Private
              30:    6(float) Constant 1065353216
              31:    6(float) Constant 1073741824
              32:    7(fvec2) ConstantComposite 30 31
              33:             TypeInt 32 0
              34:     33(int) Constant 2
              37:      8(int) Constant 1
              41:      8(int) Constant 2
              48:      8(int) Constant 3
              49:   11(ivec3) ConstantComposite 37 41 48
              52:      8(int) Constant 0
              53:     33(int) Constant 1
              54:             TypePointer Function 6(float)
              66:             TypePointer Function 7(fvec2)
              68:      8(int) Constant 7
              70:      8(int) Constant 9
              73:      8(int) Constant 10
              74:      8(int) Constant 11
              75:      8(int) Constant 12
              76:   11(ivec3) ConstantComposite 73 74 75
              79:      8(int) Constant 17
              95:             TypePointer Output 24(fvec4)
96(@entryPointOutput):     95(ptr) Variable Output
         4(main):           2 Function None 3
               5:             Label
                              Store 29(var) 32
              97:   24(fvec4) FunctionCall 26(@main()
                              Store 96(@entryPointOutput) 97
                              Return
                              FunctionEnd
16(type1::memFun1(vi3;):      8(int) Function None 13
       14(@this):     10(ptr) FunctionParameter
         15(var):     12(ptr) FunctionParameter
              17:             Label
              35:     18(ptr) AccessChain 15(var) 34
              36:      8(int) Load 35
              38:     18(ptr) AccessChain 14(@this) 37
              39:      8(int) Load 38
              40:      8(int) IAdd 36 39
              42:     18(ptr) AccessChain 14(@this) 41
              43:      8(int) Load 42
              44:      8(int) IAdd 40 43
                              ReturnValue 44
                              FunctionEnd
22(type1::memFun2(i1;):      8(int) Function None 19
       20(@this):     10(ptr) FunctionParameter
           21(a):     18(ptr) FunctionParameter
              23:             Label
         47(var):     12(ptr) Variable Function
                              Store 47(var) 49
              50:     18(ptr) AccessChain 47(var) 34
              51:      8(int) Load 50
              55:     54(ptr) AccessChain 20(@this) 52 53
              56:    6(float) Load 55
              57:      8(int) ConvertFToS 56
              58:      8(int) IAdd 51 57
              59:     18(ptr) AccessChain 20(@this) 41
              60:      8(int) Load 59
              61:      8(int) IAdd 58 60
                              ReturnValue 61
                              FunctionEnd
      26(@main():   24(fvec4) Function None 25
              27:             Label
           64(T):     10(ptr) Variable Function
           72(i):     18(ptr) Variable Function
       77(param):     12(ptr) Variable Function
       80(param):     18(ptr) Variable Function
              65:    7(fvec2) Load 29(var)
              67:     66(ptr) AccessChain 64(T) 52
                              Store 67 65
              69:     18(ptr) AccessChain 64(T) 37
                              Store 69 68
              71:     18(ptr) AccessChain 64(T) 41
                              Store 71 70
                              Store 77(param) 76
              78:      8(int) FunctionCall 16(type1::memFun1(vi3;) 64(T) 77(param)
                              Store 72(i) 78
                              Store 80(param) 79
              81:      8(int) FunctionCall 22(type1::memFun2(i1;) 64(T) 80(param)
              82:      8(int) Load 72(i)
              83:      8(int) IAdd 82 81
                              Store 72(i) 83
              84:      8(int) Load 72(i)
              85:    6(float) ConvertSToF 84
              86:      8(int) Load 72(i)
              87:    6(float) ConvertSToF 86
              88:      8(int) Load 72(i)
              89:    6(float) ConvertSToF 88
              90:      8(int) Load 72(i)
              91:    6(float) ConvertSToF 90
              92:   24(fvec4) CompositeConstruct 85 87 89 91
                              ReturnValue 92
                              FunctionEnd