aboutsummaryrefslogtreecommitdiff
path: root/Test/baseResults/hlsl.targetStruct2.frag.out
blob: 2fa47658da6c1aeab906a181582f92c2d2a07a7a (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
hlsl.targetStruct2.frag
Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:12  Function Definition: @main(struct-PSInput-f1-u11;vf4; ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:12    Function Parameters: 
0:12      'input' ( in structure{ temp float interp,  temp uint no_interp})
0:12      'po' ( out 4-component vector of float)
0:?     Sequence
0:14      move second child to first child ( temp 4-component vector of float)
0:14        o1: direct index for structure ( temp 4-component vector of float)
0:14          'pso' ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:14          Constant:
0:14            0 (const int)
0:14        Construct vec4 ( temp 4-component vector of float)
0:14          Convert uint to float ( temp float)
0:14            no_interp: direct index for structure ( temp uint)
0:14              'input' ( in structure{ temp float interp,  temp uint no_interp})
0:14              Constant:
0:14                1 (const int)
0:14          interp: direct index for structure ( temp float)
0:14            'input' ( in structure{ temp float interp,  temp uint no_interp})
0:14            Constant:
0:14              0 (const int)
0:14          Constant:
0:14            0.000000
0:14          Constant:
0:14            1.000000
0:15      move second child to first child ( temp 4-component vector of float)
0:15        o2: direct index for structure ( temp 4-component vector of float)
0:15          'pso' ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:15          Constant:
0:15            1 (const int)
0:15        Constant:
0:15          1.000000
0:15          1.000000
0:15          1.000000
0:15          1.000000
0:16      move second child to first child ( temp 4-component vector of float)
0:16        'po' ( out 4-component vector of float)
0:16        Constant:
0:16          0.000000
0:16          0.000000
0:16          0.000000
0:16          0.000000
0:18      Branch: Return with expression
0:18        'pso' ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:12  Function Definition: main( ( temp void)
0:12    Function Parameters: 
0:?     Sequence
0:12      Sequence
0:12        move second child to first child ( temp float)
0:12          interp: direct index for structure ( temp float)
0:?             'input' ( temp structure{ temp float interp,  temp uint no_interp})
0:12            Constant:
0:12              0 (const int)
0:?           'input.interp' (layout( location=0) in float)
0:12        move second child to first child ( temp uint)
0:12          no_interp: direct index for structure ( temp uint)
0:?             'input' ( temp structure{ temp float interp,  temp uint no_interp})
0:12            Constant:
0:12              1 (const int)
0:?           'input.no_interp' (layout( location=1) flat in uint)
0:12      Sequence
0:12        move second child to first child ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:12          'flattenTemp' ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:12          Function Call: @main(struct-PSInput-f1-u11;vf4; ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:?             'input' ( temp structure{ temp float interp,  temp uint no_interp})
0:?             'po' ( temp 4-component vector of float)
0:12        move second child to first child ( temp 4-component vector of float)
0:?           '@entryPointOutput.o1' (layout( location=2) out 4-component vector of float)
0:12          o1: direct index for structure ( temp 4-component vector of float)
0:12            'flattenTemp' ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:12            Constant:
0:12              0 (const int)
0:12        move second child to first child ( temp 4-component vector of float)
0:?           '@entryPointOutput.o2' (layout( location=3) out 4-component vector of float)
0:12          o2: direct index for structure ( temp 4-component vector of float)
0:12            'flattenTemp' ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:12            Constant:
0:12              1 (const int)
0:12      move second child to first child ( temp 4-component vector of float)
0:?         'po' (layout( location=0) out 4-component vector of float)
0:?         'po' ( temp 4-component vector of float)
0:?   Linker Objects
0:?     '@entryPointOutput.o1' (layout( location=2) out 4-component vector of float)
0:?     '@entryPointOutput.o2' (layout( location=3) out 4-component vector of float)
0:?     'input.interp' (layout( location=0) in float)
0:?     'input.no_interp' (layout( location=1) flat in uint)
0:?     'po' (layout( location=0) out 4-component vector of float)


Linked fragment stage:


Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:12  Function Definition: @main(struct-PSInput-f1-u11;vf4; ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:12    Function Parameters: 
0:12      'input' ( in structure{ temp float interp,  temp uint no_interp})
0:12      'po' ( out 4-component vector of float)
0:?     Sequence
0:14      move second child to first child ( temp 4-component vector of float)
0:14        o1: direct index for structure ( temp 4-component vector of float)
0:14          'pso' ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:14          Constant:
0:14            0 (const int)
0:14        Construct vec4 ( temp 4-component vector of float)
0:14          Convert uint to float ( temp float)
0:14            no_interp: direct index for structure ( temp uint)
0:14              'input' ( in structure{ temp float interp,  temp uint no_interp})
0:14              Constant:
0:14                1 (const int)
0:14          interp: direct index for structure ( temp float)
0:14            'input' ( in structure{ temp float interp,  temp uint no_interp})
0:14            Constant:
0:14              0 (const int)
0:14          Constant:
0:14            0.000000
0:14          Constant:
0:14            1.000000
0:15      move second child to first child ( temp 4-component vector of float)
0:15        o2: direct index for structure ( temp 4-component vector of float)
0:15          'pso' ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:15          Constant:
0:15            1 (const int)
0:15        Constant:
0:15          1.000000
0:15          1.000000
0:15          1.000000
0:15          1.000000
0:16      move second child to first child ( temp 4-component vector of float)
0:16        'po' ( out 4-component vector of float)
0:16        Constant:
0:16          0.000000
0:16          0.000000
0:16          0.000000
0:16          0.000000
0:18      Branch: Return with expression
0:18        'pso' ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:12  Function Definition: main( ( temp void)
0:12    Function Parameters: 
0:?     Sequence
0:12      Sequence
0:12        move second child to first child ( temp float)
0:12          interp: direct index for structure ( temp float)
0:?             'input' ( temp structure{ temp float interp,  temp uint no_interp})
0:12            Constant:
0:12              0 (const int)
0:?           'input.interp' (layout( location=0) in float)
0:12        move second child to first child ( temp uint)
0:12          no_interp: direct index for structure ( temp uint)
0:?             'input' ( temp structure{ temp float interp,  temp uint no_interp})
0:12            Constant:
0:12              1 (const int)
0:?           'input.no_interp' (layout( location=1) flat in uint)
0:12      Sequence
0:12        move second child to first child ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:12          'flattenTemp' ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:12          Function Call: @main(struct-PSInput-f1-u11;vf4; ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:?             'input' ( temp structure{ temp float interp,  temp uint no_interp})
0:?             'po' ( temp 4-component vector of float)
0:12        move second child to first child ( temp 4-component vector of float)
0:?           '@entryPointOutput.o1' (layout( location=2) out 4-component vector of float)
0:12          o1: direct index for structure ( temp 4-component vector of float)
0:12            'flattenTemp' ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:12            Constant:
0:12              0 (const int)
0:12        move second child to first child ( temp 4-component vector of float)
0:?           '@entryPointOutput.o2' (layout( location=3) out 4-component vector of float)
0:12          o2: direct index for structure ( temp 4-component vector of float)
0:12            'flattenTemp' ( temp structure{ temp 4-component vector of float o1,  temp 4-component vector of float o2})
0:12            Constant:
0:12              1 (const int)
0:12      move second child to first child ( temp 4-component vector of float)
0:?         'po' (layout( location=0) out 4-component vector of float)
0:?         'po' ( temp 4-component vector of float)
0:?   Linker Objects
0:?     '@entryPointOutput.o1' (layout( location=2) out 4-component vector of float)
0:?     '@entryPointOutput.o2' (layout( location=3) out 4-component vector of float)
0:?     'input.interp' (layout( location=0) in float)
0:?     'input.no_interp' (layout( location=1) flat in uint)
0:?     'po' (layout( location=0) out 4-component vector of float)

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

                              Capability Shader
               1:             ExtInstImport  "GLSL.std.450"
                              MemoryModel Logical GLSL450
                              EntryPoint Fragment 4  "main" 42 46 57 60 63
                              ExecutionMode 4 OriginUpperLeft
                              Source HLSL 500
                              Name 4  "main"
                              Name 8  "PSInput"
                              MemberName 8(PSInput) 0  "interp"
                              MemberName 8(PSInput) 1  "no_interp"
                              Name 12  "PSOutput"
                              MemberName 12(PSOutput) 0  "o1"
                              MemberName 12(PSOutput) 1  "o2"
                              Name 16  "@main(struct-PSInput-f1-u11;vf4;"
                              Name 14  "input"
                              Name 15  "po"
                              Name 19  "pso"
                              Name 40  "input"
                              Name 42  "input.interp"
                              Name 46  "input.no_interp"
                              Name 49  "flattenTemp"
                              Name 50  "po"
                              Name 51  "param"
                              Name 53  "param"
                              Name 57  "@entryPointOutput.o1"
                              Name 60  "@entryPointOutput.o2"
                              Name 63  "po"
                              Decorate 42(input.interp) Location 0
                              Decorate 46(input.no_interp) Flat
                              Decorate 46(input.no_interp) Location 1
                              Decorate 57(@entryPointOutput.o1) Location 2
                              Decorate 60(@entryPointOutput.o2) Location 3
                              Decorate 63(po) Location 0
               2:             TypeVoid
               3:             TypeFunction 2
               6:             TypeFloat 32
               7:             TypeInt 32 0
      8(PSInput):             TypeStruct 6(float) 7(int)
               9:             TypePointer Function 8(PSInput)
              10:             TypeVector 6(float) 4
              11:             TypePointer Function 10(fvec4)
    12(PSOutput):             TypeStruct 10(fvec4) 10(fvec4)
              13:             TypeFunction 12(PSOutput) 9(ptr) 11(ptr)
              18:             TypePointer Function 12(PSOutput)
              20:             TypeInt 32 1
              21:     20(int) Constant 0
              22:     20(int) Constant 1
              23:             TypePointer Function 7(int)
              27:             TypePointer Function 6(float)
              30:    6(float) Constant 0
              31:    6(float) Constant 1065353216
              34:   10(fvec4) ConstantComposite 31 31 31 31
              36:   10(fvec4) ConstantComposite 30 30 30 30
              41:             TypePointer Input 6(float)
42(input.interp):     41(ptr) Variable Input
              45:             TypePointer Input 7(int)
46(input.no_interp):     45(ptr) Variable Input
              56:             TypePointer Output 10(fvec4)
57(@entryPointOutput.o1):     56(ptr) Variable Output
60(@entryPointOutput.o2):     56(ptr) Variable Output
          63(po):     56(ptr) Variable Output
         4(main):           2 Function None 3
               5:             Label
       40(input):      9(ptr) Variable Function
 49(flattenTemp):     18(ptr) Variable Function
          50(po):     11(ptr) Variable Function
       51(param):      9(ptr) Variable Function
       53(param):     11(ptr) Variable Function
              43:    6(float) Load 42(input.interp)
              44:     27(ptr) AccessChain 40(input) 21
                              Store 44 43
              47:      7(int) Load 46(input.no_interp)
              48:     23(ptr) AccessChain 40(input) 22
                              Store 48 47
              52:  8(PSInput) Load 40(input)
                              Store 51(param) 52
              54:12(PSOutput) FunctionCall 16(@main(struct-PSInput-f1-u11;vf4;) 51(param) 53(param)
              55:   10(fvec4) Load 53(param)
                              Store 50(po) 55
                              Store 49(flattenTemp) 54
              58:     11(ptr) AccessChain 49(flattenTemp) 21
              59:   10(fvec4) Load 58
                              Store 57(@entryPointOutput.o1) 59
              61:     11(ptr) AccessChain 49(flattenTemp) 22
              62:   10(fvec4) Load 61
                              Store 60(@entryPointOutput.o2) 62
              64:   10(fvec4) Load 50(po)
                              Store 63(po) 64
                              Return
                              FunctionEnd
16(@main(struct-PSInput-f1-u11;vf4;):12(PSOutput) Function None 13
       14(input):      9(ptr) FunctionParameter
          15(po):     11(ptr) FunctionParameter
              17:             Label
         19(pso):     18(ptr) Variable Function
              24:     23(ptr) AccessChain 14(input) 22
              25:      7(int) Load 24
              26:    6(float) ConvertUToF 25
              28:     27(ptr) AccessChain 14(input) 21
              29:    6(float) Load 28
              32:   10(fvec4) CompositeConstruct 26 29 30 31
              33:     11(ptr) AccessChain 19(pso) 21
                              Store 33 32
              35:     11(ptr) AccessChain 19(pso) 22
                              Store 35 34
                              Store 15(po) 36
              37:12(PSOutput) Load 19(pso)
                              ReturnValue 37
                              FunctionEnd