aboutsummaryrefslogtreecommitdiff
path: root/Test/baseResults/hlsl.intrinsics.f3216.frag.out
blob: c9a94b8fee0fcb527562491a5e21ef744043f2ee (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
hlsl.intrinsics.f3216.frag
Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:2  Function Definition: PixelShaderFunctionS(f1; ( temp uint)
0:2    Function Parameters: 
0:2      'inF0' ( in float)
0:?     Sequence
0:3      Branch: Return with expression
0:3        packHalf2x16 ( temp uint)
0:3          Construct vec2 ( temp 2-component vector of float)
0:3            'inF0' ( in float)
0:3            Constant:
0:3              0.000000
0:7  Function Definition: PixelShaderFunction1(vf1; ( temp 1-component vector of uint)
0:7    Function Parameters: 
0:7      'inF0' ( in 1-component vector of float)
0:?     Sequence
0:8      Branch: Return with expression
0:8        Construct uint ( temp 1-component vector of uint)
0:8          packHalf2x16 ( temp uint)
0:8            Construct vec2 ( temp 2-component vector of float)
0:8              Construct float ( in float)
0:8                'inF0' ( in 1-component vector of float)
0:8              Constant:
0:8                0.000000
0:12  Function Definition: PixelShaderFunction2(vf2; ( temp 2-component vector of uint)
0:12    Function Parameters: 
0:12      'inF0' ( in 2-component vector of float)
0:?     Sequence
0:13      Branch: Return with expression
0:13        Construct uvec2 ( temp 2-component vector of uint)
0:13          packHalf2x16 ( temp uint)
0:13            Construct vec2 ( temp 2-component vector of float)
0:13              direct index ( temp float)
0:13                'inF0' ( in 2-component vector of float)
0:13                Constant:
0:13                  0 (const int)
0:13              Constant:
0:13                0.000000
0:13          packHalf2x16 ( temp uint)
0:13            Construct vec2 ( temp 2-component vector of float)
0:13              direct index ( temp float)
0:13                'inF0' ( in 2-component vector of float)
0:13                Constant:
0:13                  1 (const int)
0:13              Constant:
0:13                0.000000
0:17  Function Definition: PixelShaderFunction3(vf3; ( temp 3-component vector of uint)
0:17    Function Parameters: 
0:17      'inF0' ( in 3-component vector of float)
0:?     Sequence
0:18      Branch: Return with expression
0:18        Construct uvec3 ( temp 3-component vector of uint)
0:18          packHalf2x16 ( temp uint)
0:18            Construct vec2 ( temp 2-component vector of float)
0:18              direct index ( temp float)
0:18                'inF0' ( in 3-component vector of float)
0:18                Constant:
0:18                  0 (const int)
0:18              Constant:
0:18                0.000000
0:18          packHalf2x16 ( temp uint)
0:18            Construct vec2 ( temp 2-component vector of float)
0:18              direct index ( temp float)
0:18                'inF0' ( in 3-component vector of float)
0:18                Constant:
0:18                  1 (const int)
0:18              Constant:
0:18                0.000000
0:18          packHalf2x16 ( temp uint)
0:18            Construct vec2 ( temp 2-component vector of float)
0:18              direct index ( temp float)
0:18                'inF0' ( in 3-component vector of float)
0:18                Constant:
0:18                  2 (const int)
0:18              Constant:
0:18                0.000000
0:22  Function Definition: PixelShaderFunction(vf4; ( temp 4-component vector of uint)
0:22    Function Parameters: 
0:22      'inF0' ( in 4-component vector of float)
0:?     Sequence
0:23      Branch: Return with expression
0:23        Construct uvec4 ( temp 4-component vector of uint)
0:23          packHalf2x16 ( temp uint)
0:23            Construct vec2 ( temp 2-component vector of float)
0:23              direct index ( temp float)
0:23                'inF0' ( in 4-component vector of float)
0:23                Constant:
0:23                  0 (const int)
0:23              Constant:
0:23                0.000000
0:23          packHalf2x16 ( temp uint)
0:23            Construct vec2 ( temp 2-component vector of float)
0:23              direct index ( temp float)
0:23                'inF0' ( in 4-component vector of float)
0:23                Constant:
0:23                  1 (const int)
0:23              Constant:
0:23                0.000000
0:23          packHalf2x16 ( temp uint)
0:23            Construct vec2 ( temp 2-component vector of float)
0:23              direct index ( temp float)
0:23                'inF0' ( in 4-component vector of float)
0:23                Constant:
0:23                  2 (const int)
0:23              Constant:
0:23                0.000000
0:23          packHalf2x16 ( temp uint)
0:23            Construct vec2 ( temp 2-component vector of float)
0:23              direct index ( temp float)
0:23                'inF0' ( in 4-component vector of float)
0:23                Constant:
0:23                  3 (const int)
0:23              Constant:
0:23                0.000000
0:27  Function Definition: @main( ( temp 4-component vector of float)
0:27    Function Parameters: 
0:?     Sequence
0:28      Branch: Return with expression
0:28        Constant:
0:28          0.000000
0:28          0.000000
0:28          0.000000
0:28          0.000000
0:27  Function Definition: main( ( temp void)
0:27    Function Parameters: 
0:?     Sequence
0:27      move second child to first child ( temp 4-component vector of float)
0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
0:27        Function Call: @main( ( temp 4-component vector of float)
0:?   Linker Objects
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:2  Function Definition: PixelShaderFunctionS(f1; ( temp uint)
0:2    Function Parameters: 
0:2      'inF0' ( in float)
0:?     Sequence
0:3      Branch: Return with expression
0:3        packHalf2x16 ( temp uint)
0:3          Construct vec2 ( temp 2-component vector of float)
0:3            'inF0' ( in float)
0:3            Constant:
0:3              0.000000
0:7  Function Definition: PixelShaderFunction1(vf1; ( temp 1-component vector of uint)
0:7    Function Parameters: 
0:7      'inF0' ( in 1-component vector of float)
0:?     Sequence
0:8      Branch: Return with expression
0:8        Construct uint ( temp 1-component vector of uint)
0:8          packHalf2x16 ( temp uint)
0:8            Construct vec2 ( temp 2-component vector of float)
0:8              Construct float ( in float)
0:8                'inF0' ( in 1-component vector of float)
0:8              Constant:
0:8                0.000000
0:12  Function Definition: PixelShaderFunction2(vf2; ( temp 2-component vector of uint)
0:12    Function Parameters: 
0:12      'inF0' ( in 2-component vector of float)
0:?     Sequence
0:13      Branch: Return with expression
0:13        Construct uvec2 ( temp 2-component vector of uint)
0:13          packHalf2x16 ( temp uint)
0:13            Construct vec2 ( temp 2-component vector of float)
0:13              direct index ( temp float)
0:13                'inF0' ( in 2-component vector of float)
0:13                Constant:
0:13                  0 (const int)
0:13              Constant:
0:13                0.000000
0:13          packHalf2x16 ( temp uint)
0:13            Construct vec2 ( temp 2-component vector of float)
0:13              direct index ( temp float)
0:13                'inF0' ( in 2-component vector of float)
0:13                Constant:
0:13                  1 (const int)
0:13              Constant:
0:13                0.000000
0:17  Function Definition: PixelShaderFunction3(vf3; ( temp 3-component vector of uint)
0:17    Function Parameters: 
0:17      'inF0' ( in 3-component vector of float)
0:?     Sequence
0:18      Branch: Return with expression
0:18        Construct uvec3 ( temp 3-component vector of uint)
0:18          packHalf2x16 ( temp uint)
0:18            Construct vec2 ( temp 2-component vector of float)
0:18              direct index ( temp float)
0:18                'inF0' ( in 3-component vector of float)
0:18                Constant:
0:18                  0 (const int)
0:18              Constant:
0:18                0.000000
0:18          packHalf2x16 ( temp uint)
0:18            Construct vec2 ( temp 2-component vector of float)
0:18              direct index ( temp float)
0:18                'inF0' ( in 3-component vector of float)
0:18                Constant:
0:18                  1 (const int)
0:18              Constant:
0:18                0.000000
0:18          packHalf2x16 ( temp uint)
0:18            Construct vec2 ( temp 2-component vector of float)
0:18              direct index ( temp float)
0:18                'inF0' ( in 3-component vector of float)
0:18                Constant:
0:18                  2 (const int)
0:18              Constant:
0:18                0.000000
0:22  Function Definition: PixelShaderFunction(vf4; ( temp 4-component vector of uint)
0:22    Function Parameters: 
0:22      'inF0' ( in 4-component vector of float)
0:?     Sequence
0:23      Branch: Return with expression
0:23        Construct uvec4 ( temp 4-component vector of uint)
0:23          packHalf2x16 ( temp uint)
0:23            Construct vec2 ( temp 2-component vector of float)
0:23              direct index ( temp float)
0:23                'inF0' ( in 4-component vector of float)
0:23                Constant:
0:23                  0 (const int)
0:23              Constant:
0:23                0.000000
0:23          packHalf2x16 ( temp uint)
0:23            Construct vec2 ( temp 2-component vector of float)
0:23              direct index ( temp float)
0:23                'inF0' ( in 4-component vector of float)
0:23                Constant:
0:23                  1 (const int)
0:23              Constant:
0:23                0.000000
0:23          packHalf2x16 ( temp uint)
0:23            Construct vec2 ( temp 2-component vector of float)
0:23              direct index ( temp float)
0:23                'inF0' ( in 4-component vector of float)
0:23                Constant:
0:23                  2 (const int)
0:23              Constant:
0:23                0.000000
0:23          packHalf2x16 ( temp uint)
0:23            Construct vec2 ( temp 2-component vector of float)
0:23              direct index ( temp float)
0:23                'inF0' ( in 4-component vector of float)
0:23                Constant:
0:23                  3 (const int)
0:23              Constant:
0:23                0.000000
0:27  Function Definition: @main( ( temp 4-component vector of float)
0:27    Function Parameters: 
0:?     Sequence
0:28      Branch: Return with expression
0:28        Constant:
0:28          0.000000
0:28          0.000000
0:28          0.000000
0:28          0.000000
0:27  Function Definition: main( ( temp void)
0:27    Function Parameters: 
0:?     Sequence
0:27      move second child to first child ( temp 4-component vector of float)
0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
0:27        Function Call: @main( ( temp 4-component vector of float)
0:?   Linker Objects
0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)

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

                              Capability Shader
               1:             ExtInstImport  "GLSL.std.450"
                              MemoryModel Logical GLSL450
                              EntryPoint Fragment 4  "main" 104
                              ExecutionMode 4 OriginUpperLeft
                              Source HLSL 500
                              Name 4  "main"
                              Name 11  "PixelShaderFunctionS(f1;"
                              Name 10  "inF0"
                              Name 14  "PixelShaderFunction1(vf1;"
                              Name 13  "inF0"
                              Name 21  "PixelShaderFunction2(vf2;"
                              Name 20  "inF0"
                              Name 28  "PixelShaderFunction3(vf3;"
                              Name 27  "inF0"
                              Name 35  "PixelShaderFunction(vf4;"
                              Name 34  "inF0"
                              Name 38  "@main("
                              Name 104  "@entryPointOutput"
                              Decorate 104(@entryPointOutput) Location 0
               2:             TypeVoid
               3:             TypeFunction 2
               6:             TypeFloat 32
               7:             TypePointer Function 6(float)
               8:             TypeInt 32 0
               9:             TypeFunction 8(int) 7(ptr)
              16:             TypeVector 6(float) 2
              17:             TypePointer Function 16(fvec2)
              18:             TypeVector 8(int) 2
              19:             TypeFunction 18(ivec2) 17(ptr)
              23:             TypeVector 6(float) 3
              24:             TypePointer Function 23(fvec3)
              25:             TypeVector 8(int) 3
              26:             TypeFunction 25(ivec3) 24(ptr)
              30:             TypeVector 6(float) 4
              31:             TypePointer Function 30(fvec4)
              32:             TypeVector 8(int) 4
              33:             TypeFunction 32(ivec4) 31(ptr)
              37:             TypeFunction 30(fvec4)
              41:    6(float) Constant 0
              51:      8(int) Constant 0
              56:      8(int) Constant 1
              72:      8(int) Constant 2
              92:      8(int) Constant 3
             100:   30(fvec4) ConstantComposite 41 41 41 41
             103:             TypePointer Output 30(fvec4)
104(@entryPointOutput):    103(ptr) Variable Output
         4(main):           2 Function None 3
               5:             Label
             105:   30(fvec4) FunctionCall 38(@main()
                              Store 104(@entryPointOutput) 105
                              Return
                              FunctionEnd
11(PixelShaderFunctionS(f1;):      8(int) Function None 9
        10(inF0):      7(ptr) FunctionParameter
              12:             Label
              40:    6(float) Load 10(inF0)
              42:   16(fvec2) CompositeConstruct 40 41
              43:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 42
                              ReturnValue 43
                              FunctionEnd
14(PixelShaderFunction1(vf1;):      8(int) Function None 9
        13(inF0):      7(ptr) FunctionParameter
              15:             Label
              46:    6(float) Load 13(inF0)
              47:   16(fvec2) CompositeConstruct 46 41
              48:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 47
                              ReturnValue 48
                              FunctionEnd
21(PixelShaderFunction2(vf2;):   18(ivec2) Function None 19
        20(inF0):     17(ptr) FunctionParameter
              22:             Label
              52:      7(ptr) AccessChain 20(inF0) 51
              53:    6(float) Load 52
              54:   16(fvec2) CompositeConstruct 53 41
              55:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 54
              57:      7(ptr) AccessChain 20(inF0) 56
              58:    6(float) Load 57
              59:   16(fvec2) CompositeConstruct 58 41
              60:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 59
              61:   18(ivec2) CompositeConstruct 55 60
                              ReturnValue 61
                              FunctionEnd
28(PixelShaderFunction3(vf3;):   25(ivec3) Function None 26
        27(inF0):     24(ptr) FunctionParameter
              29:             Label
              64:      7(ptr) AccessChain 27(inF0) 51
              65:    6(float) Load 64
              66:   16(fvec2) CompositeConstruct 65 41
              67:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 66
              68:      7(ptr) AccessChain 27(inF0) 56
              69:    6(float) Load 68
              70:   16(fvec2) CompositeConstruct 69 41
              71:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 70
              73:      7(ptr) AccessChain 27(inF0) 72
              74:    6(float) Load 73
              75:   16(fvec2) CompositeConstruct 74 41
              76:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 75
              77:   25(ivec3) CompositeConstruct 67 71 76
                              ReturnValue 77
                              FunctionEnd
35(PixelShaderFunction(vf4;):   32(ivec4) Function None 33
        34(inF0):     31(ptr) FunctionParameter
              36:             Label
              80:      7(ptr) AccessChain 34(inF0) 51
              81:    6(float) Load 80
              82:   16(fvec2) CompositeConstruct 81 41
              83:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 82
              84:      7(ptr) AccessChain 34(inF0) 56
              85:    6(float) Load 84
              86:   16(fvec2) CompositeConstruct 85 41
              87:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 86
              88:      7(ptr) AccessChain 34(inF0) 72
              89:    6(float) Load 88
              90:   16(fvec2) CompositeConstruct 89 41
              91:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 90
              93:      7(ptr) AccessChain 34(inF0) 92
              94:    6(float) Load 93
              95:   16(fvec2) CompositeConstruct 94 41
              96:      8(int) ExtInst 1(GLSL.std.450) 58(PackHalf2x16) 95
              97:   32(ivec4) CompositeConstruct 83 87 91 96
                              ReturnValue 97
                              FunctionEnd
      38(@main():   30(fvec4) Function None 37
              39:             Label
                              ReturnValue 100
                              FunctionEnd