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