6d2526df494cb21e8a1452214bd7471420959953
[platform/upstream/glslang.git] / Test / baseResults / hlsl.gather.basic.dx10.frag.out
1 hlsl.gather.basic.dx10.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:29  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
6 0:29    Function Parameters: 
7 0:?     Sequence
8 0:34      Sequence
9 0:34        move second child to first child ( temp 4-component vector of float)
10 0:34          'txval20' ( temp 4-component vector of float)
11 0:34          textureGather ( temp 4-component vector of float)
12 0:34            Construct combined texture-sampler ( temp sampler2D)
13 0:34              'g_tTex2df4' ( uniform texture2D)
14 0:34              'g_sSamp' (layout( binding=0) uniform sampler)
15 0:?             Constant:
16 0:?               0.100000
17 0:?               0.200000
18 0:35      Sequence
19 0:35        move second child to first child ( temp 4-component vector of int)
20 0:35          'txval21' ( temp 4-component vector of int)
21 0:35          textureGather ( temp 4-component vector of int)
22 0:35            Construct combined texture-sampler ( temp isampler2D)
23 0:35              'g_tTex2di4' ( uniform itexture2D)
24 0:35              'g_sSamp' (layout( binding=0) uniform sampler)
25 0:?             Constant:
26 0:?               0.300000
27 0:?               0.400000
28 0:36      Sequence
29 0:36        move second child to first child ( temp 4-component vector of uint)
30 0:36          'txval22' ( temp 4-component vector of uint)
31 0:36          textureGather ( temp 4-component vector of uint)
32 0:36            Construct combined texture-sampler ( temp usampler2D)
33 0:36              'g_tTex2du4' ( uniform utexture2D)
34 0:36              'g_sSamp' (layout( binding=0) uniform sampler)
35 0:?             Constant:
36 0:?               0.500000
37 0:?               0.600000
38 0:40      Sequence
39 0:40        move second child to first child ( temp 4-component vector of float)
40 0:40          'txval40' ( temp 4-component vector of float)
41 0:40          textureGather ( temp 4-component vector of float)
42 0:40            Construct combined texture-sampler ( temp samplerCube)
43 0:40              'g_tTexcdf4' ( uniform textureCube)
44 0:40              'g_sSamp' (layout( binding=0) uniform sampler)
45 0:?             Constant:
46 0:?               0.100000
47 0:?               0.200000
48 0:?               0.300000
49 0:41      Sequence
50 0:41        move second child to first child ( temp 4-component vector of int)
51 0:41          'txval41' ( temp 4-component vector of int)
52 0:41          textureGather ( temp 4-component vector of int)
53 0:41            Construct combined texture-sampler ( temp isamplerCube)
54 0:41              'g_tTexcdi4' ( uniform itextureCube)
55 0:41              'g_sSamp' (layout( binding=0) uniform sampler)
56 0:?             Constant:
57 0:?               0.400000
58 0:?               0.500000
59 0:?               0.600000
60 0:42      Sequence
61 0:42        move second child to first child ( temp 4-component vector of uint)
62 0:42          'txval42' ( temp 4-component vector of uint)
63 0:42          textureGather ( temp 4-component vector of uint)
64 0:42            Construct combined texture-sampler ( temp usamplerCube)
65 0:42              'g_tTexcdu4' ( uniform utextureCube)
66 0:42              'g_sSamp' (layout( binding=0) uniform sampler)
67 0:?             Constant:
68 0:?               0.700000
69 0:?               0.800000
70 0:?               0.900000
71 0:44      move second child to first child ( temp 4-component vector of float)
72 0:44        Color: direct index for structure ( temp 4-component vector of float)
73 0:44          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
74 0:44          Constant:
75 0:44            0 (const int)
76 0:44        Constant:
77 0:44          1.000000
78 0:44          1.000000
79 0:44          1.000000
80 0:44          1.000000
81 0:45      move second child to first child ( temp float)
82 0:45        Depth: direct index for structure ( temp float)
83 0:45          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
84 0:45          Constant:
85 0:45            1 (const int)
86 0:45        Constant:
87 0:45          1.000000
88 0:47      Branch: Return with expression
89 0:47        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
90 0:29  Function Definition: main( ( temp void)
91 0:29    Function Parameters: 
92 0:?     Sequence
93 0:29      Sequence
94 0:29        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
95 0:29          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
96 0:29          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
97 0:29        move second child to first child ( temp 4-component vector of float)
98 0:?           'Color' (layout( location=0) out 4-component vector of float)
99 0:29          Color: direct index for structure ( temp 4-component vector of float)
100 0:29            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
101 0:29            Constant:
102 0:29              0 (const int)
103 0:29        move second child to first child ( temp float)
104 0:?           'Depth' ( out float FragDepth)
105 0:29          Depth: direct index for structure ( temp float)
106 0:29            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
107 0:29            Constant:
108 0:29              1 (const int)
109 0:?   Linker Objects
110 0:?     'g_sSamp' (layout( binding=0) uniform sampler)
111 0:?     'g_sSamp2d' ( uniform sampler)
112 0:?     'g_tTex1df4a' (layout( binding=1) uniform texture1D)
113 0:?     'g_tTex1df4' (layout( binding=0) uniform texture1D)
114 0:?     'g_tTex1di4' ( uniform itexture1D)
115 0:?     'g_tTex1du4' ( uniform utexture1D)
116 0:?     'g_tTex2df4' ( uniform texture2D)
117 0:?     'g_tTex2di4' ( uniform itexture2D)
118 0:?     'g_tTex2du4' ( uniform utexture2D)
119 0:?     'g_tTex3df4' ( uniform texture3D)
120 0:?     'g_tTex3di4' ( uniform itexture3D)
121 0:?     'g_tTex3du4' ( uniform utexture3D)
122 0:?     'g_tTexcdf4' ( uniform textureCube)
123 0:?     'g_tTexcdi4' ( uniform itextureCube)
124 0:?     'g_tTexcdu4' ( uniform utextureCube)
125 0:?     'Color' (layout( location=0) out 4-component vector of float)
126 0:?     'Depth' ( out float FragDepth)
127
128
129 Linked fragment stage:
130
131
132 Shader version: 450
133 gl_FragCoord origin is upper left
134 0:? Sequence
135 0:29  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
136 0:29    Function Parameters: 
137 0:?     Sequence
138 0:34      Sequence
139 0:34        move second child to first child ( temp 4-component vector of float)
140 0:34          'txval20' ( temp 4-component vector of float)
141 0:34          textureGather ( temp 4-component vector of float)
142 0:34            Construct combined texture-sampler ( temp sampler2D)
143 0:34              'g_tTex2df4' ( uniform texture2D)
144 0:34              'g_sSamp' (layout( binding=0) uniform sampler)
145 0:?             Constant:
146 0:?               0.100000
147 0:?               0.200000
148 0:35      Sequence
149 0:35        move second child to first child ( temp 4-component vector of int)
150 0:35          'txval21' ( temp 4-component vector of int)
151 0:35          textureGather ( temp 4-component vector of int)
152 0:35            Construct combined texture-sampler ( temp isampler2D)
153 0:35              'g_tTex2di4' ( uniform itexture2D)
154 0:35              'g_sSamp' (layout( binding=0) uniform sampler)
155 0:?             Constant:
156 0:?               0.300000
157 0:?               0.400000
158 0:36      Sequence
159 0:36        move second child to first child ( temp 4-component vector of uint)
160 0:36          'txval22' ( temp 4-component vector of uint)
161 0:36          textureGather ( temp 4-component vector of uint)
162 0:36            Construct combined texture-sampler ( temp usampler2D)
163 0:36              'g_tTex2du4' ( uniform utexture2D)
164 0:36              'g_sSamp' (layout( binding=0) uniform sampler)
165 0:?             Constant:
166 0:?               0.500000
167 0:?               0.600000
168 0:40      Sequence
169 0:40        move second child to first child ( temp 4-component vector of float)
170 0:40          'txval40' ( temp 4-component vector of float)
171 0:40          textureGather ( temp 4-component vector of float)
172 0:40            Construct combined texture-sampler ( temp samplerCube)
173 0:40              'g_tTexcdf4' ( uniform textureCube)
174 0:40              'g_sSamp' (layout( binding=0) uniform sampler)
175 0:?             Constant:
176 0:?               0.100000
177 0:?               0.200000
178 0:?               0.300000
179 0:41      Sequence
180 0:41        move second child to first child ( temp 4-component vector of int)
181 0:41          'txval41' ( temp 4-component vector of int)
182 0:41          textureGather ( temp 4-component vector of int)
183 0:41            Construct combined texture-sampler ( temp isamplerCube)
184 0:41              'g_tTexcdi4' ( uniform itextureCube)
185 0:41              'g_sSamp' (layout( binding=0) uniform sampler)
186 0:?             Constant:
187 0:?               0.400000
188 0:?               0.500000
189 0:?               0.600000
190 0:42      Sequence
191 0:42        move second child to first child ( temp 4-component vector of uint)
192 0:42          'txval42' ( temp 4-component vector of uint)
193 0:42          textureGather ( temp 4-component vector of uint)
194 0:42            Construct combined texture-sampler ( temp usamplerCube)
195 0:42              'g_tTexcdu4' ( uniform utextureCube)
196 0:42              'g_sSamp' (layout( binding=0) uniform sampler)
197 0:?             Constant:
198 0:?               0.700000
199 0:?               0.800000
200 0:?               0.900000
201 0:44      move second child to first child ( temp 4-component vector of float)
202 0:44        Color: direct index for structure ( temp 4-component vector of float)
203 0:44          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
204 0:44          Constant:
205 0:44            0 (const int)
206 0:44        Constant:
207 0:44          1.000000
208 0:44          1.000000
209 0:44          1.000000
210 0:44          1.000000
211 0:45      move second child to first child ( temp float)
212 0:45        Depth: direct index for structure ( temp float)
213 0:45          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
214 0:45          Constant:
215 0:45            1 (const int)
216 0:45        Constant:
217 0:45          1.000000
218 0:47      Branch: Return with expression
219 0:47        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
220 0:29  Function Definition: main( ( temp void)
221 0:29    Function Parameters: 
222 0:?     Sequence
223 0:29      Sequence
224 0:29        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
225 0:29          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
226 0:29          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
227 0:29        move second child to first child ( temp 4-component vector of float)
228 0:?           'Color' (layout( location=0) out 4-component vector of float)
229 0:29          Color: direct index for structure ( temp 4-component vector of float)
230 0:29            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
231 0:29            Constant:
232 0:29              0 (const int)
233 0:29        move second child to first child ( temp float)
234 0:?           'Depth' ( out float FragDepth)
235 0:29          Depth: direct index for structure ( temp float)
236 0:29            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
237 0:29            Constant:
238 0:29              1 (const int)
239 0:?   Linker Objects
240 0:?     'g_sSamp' (layout( binding=0) uniform sampler)
241 0:?     'g_sSamp2d' ( uniform sampler)
242 0:?     'g_tTex1df4a' (layout( binding=1) uniform texture1D)
243 0:?     'g_tTex1df4' (layout( binding=0) uniform texture1D)
244 0:?     'g_tTex1di4' ( uniform itexture1D)
245 0:?     'g_tTex1du4' ( uniform utexture1D)
246 0:?     'g_tTex2df4' ( uniform texture2D)
247 0:?     'g_tTex2di4' ( uniform itexture2D)
248 0:?     'g_tTex2du4' ( uniform utexture2D)
249 0:?     'g_tTex3df4' ( uniform texture3D)
250 0:?     'g_tTex3di4' ( uniform itexture3D)
251 0:?     'g_tTex3du4' ( uniform utexture3D)
252 0:?     'g_tTexcdf4' ( uniform textureCube)
253 0:?     'g_tTexcdi4' ( uniform itextureCube)
254 0:?     'g_tTexcdu4' ( uniform utextureCube)
255 0:?     'Color' (layout( location=0) out 4-component vector of float)
256 0:?     'Depth' ( out float FragDepth)
257
258 // Module Version 10000
259 // Generated by (magic number): 80001
260 // Id's are bound by 135
261
262                               Capability Shader
263                               Capability Sampled1D
264                1:             ExtInstImport  "GLSL.std.450"
265                               MemoryModel Logical GLSL450
266                               EntryPoint Fragment 4  "main" 108 112
267                               ExecutionMode 4 OriginUpperLeft
268                               Name 4  "main"
269                               Name 8  "PS_OUTPUT"
270                               MemberName 8(PS_OUTPUT) 0  "Color"
271                               MemberName 8(PS_OUTPUT) 1  "Depth"
272                               Name 10  "@main("
273                               Name 13  "txval20"
274                               Name 16  "g_tTex2df4"
275                               Name 20  "g_sSamp"
276                               Name 33  "txval21"
277                               Name 36  "g_tTex2di4"
278                               Name 48  "txval22"
279                               Name 51  "g_tTex2du4"
280                               Name 60  "txval40"
281                               Name 63  "g_tTexcdf4"
282                               Name 71  "txval41"
283                               Name 74  "g_tTexcdi4"
284                               Name 81  "txval42"
285                               Name 84  "g_tTexcdu4"
286                               Name 95  "psout"
287                               Name 105  "flattenTemp"
288                               Name 108  "Color"
289                               Name 112  "Depth"
290                               Name 115  "g_sSamp2d"
291                               Name 118  "g_tTex1df4a"
292                               Name 119  "g_tTex1df4"
293                               Name 122  "g_tTex1di4"
294                               Name 125  "g_tTex1du4"
295                               Name 128  "g_tTex3df4"
296                               Name 131  "g_tTex3di4"
297                               Name 134  "g_tTex3du4"
298                               Decorate 16(g_tTex2df4) DescriptorSet 0
299                               Decorate 20(g_sSamp) DescriptorSet 0
300                               Decorate 20(g_sSamp) Binding 0
301                               Decorate 36(g_tTex2di4) DescriptorSet 0
302                               Decorate 51(g_tTex2du4) DescriptorSet 0
303                               Decorate 63(g_tTexcdf4) DescriptorSet 0
304                               Decorate 74(g_tTexcdi4) DescriptorSet 0
305                               Decorate 84(g_tTexcdu4) DescriptorSet 0
306                               Decorate 108(Color) Location 0
307                               Decorate 112(Depth) BuiltIn FragDepth
308                               Decorate 115(g_sSamp2d) DescriptorSet 0
309                               Decorate 118(g_tTex1df4a) DescriptorSet 0
310                               Decorate 118(g_tTex1df4a) Binding 1
311                               Decorate 119(g_tTex1df4) DescriptorSet 0
312                               Decorate 119(g_tTex1df4) Binding 0
313                               Decorate 122(g_tTex1di4) DescriptorSet 0
314                               Decorate 125(g_tTex1du4) DescriptorSet 0
315                               Decorate 128(g_tTex3df4) DescriptorSet 0
316                               Decorate 131(g_tTex3di4) DescriptorSet 0
317                               Decorate 134(g_tTex3du4) DescriptorSet 0
318                2:             TypeVoid
319                3:             TypeFunction 2
320                6:             TypeFloat 32
321                7:             TypeVector 6(float) 4
322     8(PS_OUTPUT):             TypeStruct 7(fvec4) 6(float)
323                9:             TypeFunction 8(PS_OUTPUT)
324               12:             TypePointer Function 7(fvec4)
325               14:             TypeImage 6(float) 2D sampled format:Unknown
326               15:             TypePointer UniformConstant 14
327   16(g_tTex2df4):     15(ptr) Variable UniformConstant
328               18:             TypeSampler
329               19:             TypePointer UniformConstant 18
330      20(g_sSamp):     19(ptr) Variable UniformConstant
331               22:             TypeSampledImage 14
332               24:             TypeVector 6(float) 2
333               25:    6(float) Constant 1036831949
334               26:    6(float) Constant 1045220557
335               27:   24(fvec2) ConstantComposite 25 26
336               28:             TypeInt 32 1
337               29:     28(int) Constant 0
338               31:             TypeVector 28(int) 4
339               32:             TypePointer Function 31(ivec4)
340               34:             TypeImage 28(int) 2D sampled format:Unknown
341               35:             TypePointer UniformConstant 34
342   36(g_tTex2di4):     35(ptr) Variable UniformConstant
343               39:             TypeSampledImage 34
344               41:    6(float) Constant 1050253722
345               42:    6(float) Constant 1053609165
346               43:   24(fvec2) ConstantComposite 41 42
347               45:             TypeInt 32 0
348               46:             TypeVector 45(int) 4
349               47:             TypePointer Function 46(ivec4)
350               49:             TypeImage 45(int) 2D sampled format:Unknown
351               50:             TypePointer UniformConstant 49
352   51(g_tTex2du4):     50(ptr) Variable UniformConstant
353               54:             TypeSampledImage 49
354               56:    6(float) Constant 1056964608
355               57:    6(float) Constant 1058642330
356               58:   24(fvec2) ConstantComposite 56 57
357               61:             TypeImage 6(float) Cube sampled format:Unknown
358               62:             TypePointer UniformConstant 61
359   63(g_tTexcdf4):     62(ptr) Variable UniformConstant
360               66:             TypeSampledImage 61
361               68:             TypeVector 6(float) 3
362               69:   68(fvec3) ConstantComposite 25 26 41
363               72:             TypeImage 28(int) Cube sampled format:Unknown
364               73:             TypePointer UniformConstant 72
365   74(g_tTexcdi4):     73(ptr) Variable UniformConstant
366               77:             TypeSampledImage 72
367               79:   68(fvec3) ConstantComposite 42 56 57
368               82:             TypeImage 45(int) Cube sampled format:Unknown
369               83:             TypePointer UniformConstant 82
370   84(g_tTexcdu4):     83(ptr) Variable UniformConstant
371               87:             TypeSampledImage 82
372               89:    6(float) Constant 1060320051
373               90:    6(float) Constant 1061997773
374               91:    6(float) Constant 1063675494
375               92:   68(fvec3) ConstantComposite 89 90 91
376               94:             TypePointer Function 8(PS_OUTPUT)
377               96:    6(float) Constant 1065353216
378               97:    7(fvec4) ConstantComposite 96 96 96 96
379               99:     28(int) Constant 1
380              100:             TypePointer Function 6(float)
381              107:             TypePointer Output 7(fvec4)
382       108(Color):    107(ptr) Variable Output
383              111:             TypePointer Output 6(float)
384       112(Depth):    111(ptr) Variable Output
385   115(g_sSamp2d):     19(ptr) Variable UniformConstant
386              116:             TypeImage 6(float) 1D sampled format:Unknown
387              117:             TypePointer UniformConstant 116
388 118(g_tTex1df4a):    117(ptr) Variable UniformConstant
389  119(g_tTex1df4):    117(ptr) Variable UniformConstant
390              120:             TypeImage 28(int) 1D sampled format:Unknown
391              121:             TypePointer UniformConstant 120
392  122(g_tTex1di4):    121(ptr) Variable UniformConstant
393              123:             TypeImage 45(int) 1D sampled format:Unknown
394              124:             TypePointer UniformConstant 123
395  125(g_tTex1du4):    124(ptr) Variable UniformConstant
396              126:             TypeImage 6(float) 3D sampled format:Unknown
397              127:             TypePointer UniformConstant 126
398  128(g_tTex3df4):    127(ptr) Variable UniformConstant
399              129:             TypeImage 28(int) 3D sampled format:Unknown
400              130:             TypePointer UniformConstant 129
401  131(g_tTex3di4):    130(ptr) Variable UniformConstant
402              132:             TypeImage 45(int) 3D sampled format:Unknown
403              133:             TypePointer UniformConstant 132
404  134(g_tTex3du4):    133(ptr) Variable UniformConstant
405          4(main):           2 Function None 3
406                5:             Label
407 105(flattenTemp):     94(ptr) Variable Function
408              106:8(PS_OUTPUT) FunctionCall 10(@main()
409                               Store 105(flattenTemp) 106
410              109:     12(ptr) AccessChain 105(flattenTemp) 29
411              110:    7(fvec4) Load 109
412                               Store 108(Color) 110
413              113:    100(ptr) AccessChain 105(flattenTemp) 99
414              114:    6(float) Load 113
415                               Store 112(Depth) 114
416                               Return
417                               FunctionEnd
418       10(@main():8(PS_OUTPUT) Function None 9
419               11:             Label
420      13(txval20):     12(ptr) Variable Function
421      33(txval21):     32(ptr) Variable Function
422      48(txval22):     47(ptr) Variable Function
423      60(txval40):     12(ptr) Variable Function
424      71(txval41):     32(ptr) Variable Function
425      81(txval42):     47(ptr) Variable Function
426        95(psout):     94(ptr) Variable Function
427               17:          14 Load 16(g_tTex2df4)
428               21:          18 Load 20(g_sSamp)
429               23:          22 SampledImage 17 21
430               30:    7(fvec4) ImageGather 23 27 29
431                               Store 13(txval20) 30
432               37:          34 Load 36(g_tTex2di4)
433               38:          18 Load 20(g_sSamp)
434               40:          39 SampledImage 37 38
435               44:   31(ivec4) ImageGather 40 43 29
436                               Store 33(txval21) 44
437               52:          49 Load 51(g_tTex2du4)
438               53:          18 Load 20(g_sSamp)
439               55:          54 SampledImage 52 53
440               59:   46(ivec4) ImageGather 55 58 29
441                               Store 48(txval22) 59
442               64:          61 Load 63(g_tTexcdf4)
443               65:          18 Load 20(g_sSamp)
444               67:          66 SampledImage 64 65
445               70:    7(fvec4) ImageGather 67 69 29
446                               Store 60(txval40) 70
447               75:          72 Load 74(g_tTexcdi4)
448               76:          18 Load 20(g_sSamp)
449               78:          77 SampledImage 75 76
450               80:   31(ivec4) ImageGather 78 79 29
451                               Store 71(txval41) 80
452               85:          82 Load 84(g_tTexcdu4)
453               86:          18 Load 20(g_sSamp)
454               88:          87 SampledImage 85 86
455               93:   46(ivec4) ImageGather 88 92 29
456                               Store 81(txval42) 93
457               98:     12(ptr) AccessChain 95(psout) 29
458                               Store 98 97
459              101:    100(ptr) AccessChain 95(psout) 99
460                               Store 101 96
461              102:8(PS_OUTPUT) Load 95(psout)
462                               ReturnValue 102
463                               FunctionEnd