4d038a19587769afab798cda1b8372b08769df25
[platform/upstream/glslang.git] / Test / baseResults / hlsl.imageload-subvec4.comp.out
1 hlsl.imageload-subvec4.comp
2 Shader version: 500
3 local_size = (8, 8, 8)
4 0:? Sequence
5 0:17  Function Definition: @main(vu3; ( temp void)
6 0:17    Function Parameters: 
7 0:17      'tid' ( in 3-component vector of uint)
8 0:?     Sequence
9 0:18      Sequence
10 0:18        move second child to first child ( temp float)
11 0:18          'f' ( temp float)
12 0:18          Constant:
13 0:18            0.000000
14 0:19      add second child into first child ( temp float)
15 0:19        'f' ( temp float)
16 0:19        imageLoad ( temp float)
17 0:19          'i1D' (layout( binding=0 r32f) uniform image1D)
18 0:19          direct index ( temp uint)
19 0:19            'tid' ( in 3-component vector of uint)
20 0:19            Constant:
21 0:19              0 (const int)
22 0:20      add second child into first child ( temp float)
23 0:20        'f' ( temp float)
24 0:20        imageLoad ( temp float)
25 0:20          'i2D' (layout( binding=1 r32f) uniform image2D)
26 0:20          vector swizzle ( temp 2-component vector of uint)
27 0:20            'tid' ( in 3-component vector of uint)
28 0:20            Sequence
29 0:20              Constant:
30 0:20                0 (const int)
31 0:20              Constant:
32 0:20                1 (const int)
33 0:21      add second child into first child ( temp float)
34 0:21        'f' ( temp float)
35 0:21        imageLoad ( temp float)
36 0:21          'i3D' (layout( binding=2 r32f) uniform image3D)
37 0:21          'tid' ( in 3-component vector of uint)
38 0:22      add second child into first child ( temp float)
39 0:22        'f' ( temp float)
40 0:22        imageLoad ( temp float)
41 0:22          'i1DArray' (layout( binding=3 r32f) uniform image1DArray)
42 0:22          vector swizzle ( temp 2-component vector of uint)
43 0:22            'tid' ( in 3-component vector of uint)
44 0:22            Sequence
45 0:22              Constant:
46 0:22                0 (const int)
47 0:22              Constant:
48 0:22                1 (const int)
49 0:23      add second child into first child ( temp float)
50 0:23        'f' ( temp float)
51 0:23        imageLoad ( temp float)
52 0:23          'i2DArray' (layout( binding=4 r32f) uniform image2DArray)
53 0:23          'tid' ( in 3-component vector of uint)
54 0:25      Sequence
55 0:25        move second child to first child ( temp int)
56 0:25          'i' ( temp int)
57 0:25          Constant:
58 0:25            0 (const int)
59 0:26      add second child into first child ( temp int)
60 0:26        'i' ( temp int)
61 0:26        imageLoad ( temp int)
62 0:26          'ii1D' (layout( binding=5 r32i) uniform iimage1D)
63 0:26          direct index ( temp uint)
64 0:26            'tid' ( in 3-component vector of uint)
65 0:26            Constant:
66 0:26              0 (const int)
67 0:27      add second child into first child ( temp int)
68 0:27        'i' ( temp int)
69 0:27        imageLoad ( temp int)
70 0:27          'ii2D' (layout( binding=6 r32i) uniform iimage2D)
71 0:27          vector swizzle ( temp 2-component vector of uint)
72 0:27            'tid' ( in 3-component vector of uint)
73 0:27            Sequence
74 0:27              Constant:
75 0:27                0 (const int)
76 0:27              Constant:
77 0:27                1 (const int)
78 0:28      add second child into first child ( temp int)
79 0:28        'i' ( temp int)
80 0:28        imageLoad ( temp int)
81 0:28          'ii3D' (layout( binding=7 r32i) uniform iimage3D)
82 0:28          'tid' ( in 3-component vector of uint)
83 0:29      add second child into first child ( temp int)
84 0:29        'i' ( temp int)
85 0:29        imageLoad ( temp int)
86 0:29          'ii1DArray' (layout( binding=8 r32i) uniform iimage1DArray)
87 0:29          vector swizzle ( temp 2-component vector of uint)
88 0:29            'tid' ( in 3-component vector of uint)
89 0:29            Sequence
90 0:29              Constant:
91 0:29                0 (const int)
92 0:29              Constant:
93 0:29                1 (const int)
94 0:30      add second child into first child ( temp int)
95 0:30        'i' ( temp int)
96 0:30        imageLoad ( temp int)
97 0:30          'ii2DArray' (layout( binding=9 r32i) uniform iimage2DArray)
98 0:30          'tid' ( in 3-component vector of uint)
99 0:32      Sequence
100 0:32        move second child to first child ( temp float)
101 0:32          'storeTemp' ( temp float)
102 0:32          add ( temp float)
103 0:32            'f' ( temp float)
104 0:32            Convert int to float ( temp float)
105 0:32              'i' ( temp int)
106 0:32        imageStore ( temp void)
107 0:32          'OUT' (layout( binding=10 r32f) uniform image3D)
108 0:32          'tid' ( in 3-component vector of uint)
109 0:32          'storeTemp' ( temp float)
110 0:32        'storeTemp' ( temp float)
111 0:17  Function Definition: main( ( temp void)
112 0:17    Function Parameters: 
113 0:?     Sequence
114 0:17      move second child to first child ( temp 3-component vector of uint)
115 0:?         'tid' ( temp 3-component vector of uint)
116 0:?         'tid' ( in 3-component vector of uint GlobalInvocationID)
117 0:17      Function Call: @main(vu3; ( temp void)
118 0:?         'tid' ( temp 3-component vector of uint)
119 0:?   Linker Objects
120 0:?     'i1D' (layout( binding=0 r32f) uniform image1D)
121 0:?     'i2D' (layout( binding=1 r32f) uniform image2D)
122 0:?     'i3D' (layout( binding=2 r32f) uniform image3D)
123 0:?     'i1DArray' (layout( binding=3 r32f) uniform image1DArray)
124 0:?     'i2DArray' (layout( binding=4 r32f) uniform image2DArray)
125 0:?     'ii1D' (layout( binding=5 r32i) uniform iimage1D)
126 0:?     'ii2D' (layout( binding=6 r32i) uniform iimage2D)
127 0:?     'ii3D' (layout( binding=7 r32i) uniform iimage3D)
128 0:?     'ii1DArray' (layout( binding=8 r32i) uniform iimage1DArray)
129 0:?     'ii2DArray' (layout( binding=9 r32i) uniform iimage2DArray)
130 0:?     'OUT' (layout( binding=10 r32f) uniform image3D)
131 0:?     'tid' ( in 3-component vector of uint GlobalInvocationID)
132
133
134 Linked compute stage:
135
136
137 Shader version: 500
138 local_size = (8, 8, 8)
139 0:? Sequence
140 0:17  Function Definition: @main(vu3; ( temp void)
141 0:17    Function Parameters: 
142 0:17      'tid' ( in 3-component vector of uint)
143 0:?     Sequence
144 0:18      Sequence
145 0:18        move second child to first child ( temp float)
146 0:18          'f' ( temp float)
147 0:18          Constant:
148 0:18            0.000000
149 0:19      add second child into first child ( temp float)
150 0:19        'f' ( temp float)
151 0:19        imageLoad ( temp float)
152 0:19          'i1D' (layout( binding=0 r32f) uniform image1D)
153 0:19          direct index ( temp uint)
154 0:19            'tid' ( in 3-component vector of uint)
155 0:19            Constant:
156 0:19              0 (const int)
157 0:20      add second child into first child ( temp float)
158 0:20        'f' ( temp float)
159 0:20        imageLoad ( temp float)
160 0:20          'i2D' (layout( binding=1 r32f) uniform image2D)
161 0:20          vector swizzle ( temp 2-component vector of uint)
162 0:20            'tid' ( in 3-component vector of uint)
163 0:20            Sequence
164 0:20              Constant:
165 0:20                0 (const int)
166 0:20              Constant:
167 0:20                1 (const int)
168 0:21      add second child into first child ( temp float)
169 0:21        'f' ( temp float)
170 0:21        imageLoad ( temp float)
171 0:21          'i3D' (layout( binding=2 r32f) uniform image3D)
172 0:21          'tid' ( in 3-component vector of uint)
173 0:22      add second child into first child ( temp float)
174 0:22        'f' ( temp float)
175 0:22        imageLoad ( temp float)
176 0:22          'i1DArray' (layout( binding=3 r32f) uniform image1DArray)
177 0:22          vector swizzle ( temp 2-component vector of uint)
178 0:22            'tid' ( in 3-component vector of uint)
179 0:22            Sequence
180 0:22              Constant:
181 0:22                0 (const int)
182 0:22              Constant:
183 0:22                1 (const int)
184 0:23      add second child into first child ( temp float)
185 0:23        'f' ( temp float)
186 0:23        imageLoad ( temp float)
187 0:23          'i2DArray' (layout( binding=4 r32f) uniform image2DArray)
188 0:23          'tid' ( in 3-component vector of uint)
189 0:25      Sequence
190 0:25        move second child to first child ( temp int)
191 0:25          'i' ( temp int)
192 0:25          Constant:
193 0:25            0 (const int)
194 0:26      add second child into first child ( temp int)
195 0:26        'i' ( temp int)
196 0:26        imageLoad ( temp int)
197 0:26          'ii1D' (layout( binding=5 r32i) uniform iimage1D)
198 0:26          direct index ( temp uint)
199 0:26            'tid' ( in 3-component vector of uint)
200 0:26            Constant:
201 0:26              0 (const int)
202 0:27      add second child into first child ( temp int)
203 0:27        'i' ( temp int)
204 0:27        imageLoad ( temp int)
205 0:27          'ii2D' (layout( binding=6 r32i) uniform iimage2D)
206 0:27          vector swizzle ( temp 2-component vector of uint)
207 0:27            'tid' ( in 3-component vector of uint)
208 0:27            Sequence
209 0:27              Constant:
210 0:27                0 (const int)
211 0:27              Constant:
212 0:27                1 (const int)
213 0:28      add second child into first child ( temp int)
214 0:28        'i' ( temp int)
215 0:28        imageLoad ( temp int)
216 0:28          'ii3D' (layout( binding=7 r32i) uniform iimage3D)
217 0:28          'tid' ( in 3-component vector of uint)
218 0:29      add second child into first child ( temp int)
219 0:29        'i' ( temp int)
220 0:29        imageLoad ( temp int)
221 0:29          'ii1DArray' (layout( binding=8 r32i) uniform iimage1DArray)
222 0:29          vector swizzle ( temp 2-component vector of uint)
223 0:29            'tid' ( in 3-component vector of uint)
224 0:29            Sequence
225 0:29              Constant:
226 0:29                0 (const int)
227 0:29              Constant:
228 0:29                1 (const int)
229 0:30      add second child into first child ( temp int)
230 0:30        'i' ( temp int)
231 0:30        imageLoad ( temp int)
232 0:30          'ii2DArray' (layout( binding=9 r32i) uniform iimage2DArray)
233 0:30          'tid' ( in 3-component vector of uint)
234 0:32      Sequence
235 0:32        move second child to first child ( temp float)
236 0:32          'storeTemp' ( temp float)
237 0:32          add ( temp float)
238 0:32            'f' ( temp float)
239 0:32            Convert int to float ( temp float)
240 0:32              'i' ( temp int)
241 0:32        imageStore ( temp void)
242 0:32          'OUT' (layout( binding=10 r32f) uniform image3D)
243 0:32          'tid' ( in 3-component vector of uint)
244 0:32          'storeTemp' ( temp float)
245 0:32        'storeTemp' ( temp float)
246 0:17  Function Definition: main( ( temp void)
247 0:17    Function Parameters: 
248 0:?     Sequence
249 0:17      move second child to first child ( temp 3-component vector of uint)
250 0:?         'tid' ( temp 3-component vector of uint)
251 0:?         'tid' ( in 3-component vector of uint GlobalInvocationID)
252 0:17      Function Call: @main(vu3; ( temp void)
253 0:?         'tid' ( temp 3-component vector of uint)
254 0:?   Linker Objects
255 0:?     'i1D' (layout( binding=0 r32f) uniform image1D)
256 0:?     'i2D' (layout( binding=1 r32f) uniform image2D)
257 0:?     'i3D' (layout( binding=2 r32f) uniform image3D)
258 0:?     'i1DArray' (layout( binding=3 r32f) uniform image1DArray)
259 0:?     'i2DArray' (layout( binding=4 r32f) uniform image2DArray)
260 0:?     'ii1D' (layout( binding=5 r32i) uniform iimage1D)
261 0:?     'ii2D' (layout( binding=6 r32i) uniform iimage2D)
262 0:?     'ii3D' (layout( binding=7 r32i) uniform iimage3D)
263 0:?     'ii1DArray' (layout( binding=8 r32i) uniform iimage1DArray)
264 0:?     'ii2DArray' (layout( binding=9 r32i) uniform iimage2DArray)
265 0:?     'OUT' (layout( binding=10 r32f) uniform image3D)
266 0:?     'tid' ( in 3-component vector of uint GlobalInvocationID)
267
268 // Module Version 10000
269 // Generated by (magic number): 8000a
270 // Id's are bound by 138
271
272                               Capability Shader
273                               Capability Image1D
274                1:             ExtInstImport  "GLSL.std.450"
275                               MemoryModel Logical GLSL450
276                               EntryPoint GLCompute 4  "main" 133
277                               ExecutionMode 4 LocalSize 8 8 8
278                               Source HLSL 500
279                               Name 4  "main"
280                               Name 11  "@main(vu3;"
281                               Name 10  "tid"
282                               Name 15  "f"
283                               Name 19  "i1D"
284                               Name 32  "i2D"
285                               Name 43  "i3D"
286                               Name 52  "i1DArray"
287                               Name 62  "i2DArray"
288                               Name 71  "i"
289                               Name 75  "ii1D"
290                               Name 86  "ii2D"
291                               Name 96  "ii3D"
292                               Name 105  "ii1DArray"
293                               Name 115  "ii2DArray"
294                               Name 122  "storeTemp"
295                               Name 127  "OUT"
296                               Name 131  "tid"
297                               Name 133  "tid"
298                               Name 135  "param"
299                               Decorate 19(i1D) DescriptorSet 0
300                               Decorate 19(i1D) Binding 0
301                               Decorate 32(i2D) DescriptorSet 0
302                               Decorate 32(i2D) Binding 1
303                               Decorate 43(i3D) DescriptorSet 0
304                               Decorate 43(i3D) Binding 2
305                               Decorate 52(i1DArray) DescriptorSet 0
306                               Decorate 52(i1DArray) Binding 3
307                               Decorate 62(i2DArray) DescriptorSet 0
308                               Decorate 62(i2DArray) Binding 4
309                               Decorate 75(ii1D) DescriptorSet 0
310                               Decorate 75(ii1D) Binding 5
311                               Decorate 86(ii2D) DescriptorSet 0
312                               Decorate 86(ii2D) Binding 6
313                               Decorate 96(ii3D) DescriptorSet 0
314                               Decorate 96(ii3D) Binding 7
315                               Decorate 105(ii1DArray) DescriptorSet 0
316                               Decorate 105(ii1DArray) Binding 8
317                               Decorate 115(ii2DArray) DescriptorSet 0
318                               Decorate 115(ii2DArray) Binding 9
319                               Decorate 127(OUT) DescriptorSet 0
320                               Decorate 127(OUT) Binding 10
321                               Decorate 133(tid) BuiltIn GlobalInvocationId
322                2:             TypeVoid
323                3:             TypeFunction 2
324                6:             TypeInt 32 0
325                7:             TypeVector 6(int) 3
326                8:             TypePointer Function 7(ivec3)
327                9:             TypeFunction 2 8(ptr)
328               13:             TypeFloat 32
329               14:             TypePointer Function 13(float)
330               16:   13(float) Constant 0
331               17:             TypeImage 13(float) 1D nonsampled format:R32f
332               18:             TypePointer UniformConstant 17
333          19(i1D):     18(ptr) Variable UniformConstant
334               21:      6(int) Constant 0
335               22:             TypePointer Function 6(int)
336               25:             TypeVector 13(float) 4
337               30:             TypeImage 13(float) 2D nonsampled format:R32f
338               31:             TypePointer UniformConstant 30
339          32(i2D):     31(ptr) Variable UniformConstant
340               34:             TypeVector 6(int) 2
341               41:             TypeImage 13(float) 3D nonsampled format:R32f
342               42:             TypePointer UniformConstant 41
343          43(i3D):     42(ptr) Variable UniformConstant
344               50:             TypeImage 13(float) 1D array nonsampled format:R32f
345               51:             TypePointer UniformConstant 50
346     52(i1DArray):     51(ptr) Variable UniformConstant
347               60:             TypeImage 13(float) 2D array nonsampled format:R32f
348               61:             TypePointer UniformConstant 60
349     62(i2DArray):     61(ptr) Variable UniformConstant
350               69:             TypeInt 32 1
351               70:             TypePointer Function 69(int)
352               72:     69(int) Constant 0
353               73:             TypeImage 69(int) 1D nonsampled format:R32i
354               74:             TypePointer UniformConstant 73
355         75(ii1D):     74(ptr) Variable UniformConstant
356               79:             TypeVector 69(int) 4
357               84:             TypeImage 69(int) 2D nonsampled format:R32i
358               85:             TypePointer UniformConstant 84
359         86(ii2D):     85(ptr) Variable UniformConstant
360               94:             TypeImage 69(int) 3D nonsampled format:R32i
361               95:             TypePointer UniformConstant 94
362         96(ii3D):     95(ptr) Variable UniformConstant
363              103:             TypeImage 69(int) 1D array nonsampled format:R32i
364              104:             TypePointer UniformConstant 103
365   105(ii1DArray):    104(ptr) Variable UniformConstant
366              113:             TypeImage 69(int) 2D array nonsampled format:R32i
367              114:             TypePointer UniformConstant 113
368   115(ii2DArray):    114(ptr) Variable UniformConstant
369         127(OUT):     42(ptr) Variable UniformConstant
370              132:             TypePointer Input 7(ivec3)
371         133(tid):    132(ptr) Variable Input
372          4(main):           2 Function None 3
373                5:             Label
374         131(tid):      8(ptr) Variable Function
375       135(param):      8(ptr) Variable Function
376              134:    7(ivec3) Load 133(tid)
377                               Store 131(tid) 134
378              136:    7(ivec3) Load 131(tid)
379                               Store 135(param) 136
380              137:           2 FunctionCall 11(@main(vu3;) 135(param)
381                               Return
382                               FunctionEnd
383   11(@main(vu3;):           2 Function None 9
384          10(tid):      8(ptr) FunctionParameter
385               12:             Label
386            15(f):     14(ptr) Variable Function
387            71(i):     70(ptr) Variable Function
388   122(storeTemp):     14(ptr) Variable Function
389                               Store 15(f) 16
390               20:          17 Load 19(i1D)
391               23:     22(ptr) AccessChain 10(tid) 21
392               24:      6(int) Load 23
393               26:   25(fvec4) ImageRead 20 24
394               27:   13(float) CompositeExtract 26 0
395               28:   13(float) Load 15(f)
396               29:   13(float) FAdd 28 27
397                               Store 15(f) 29
398               33:          30 Load 32(i2D)
399               35:    7(ivec3) Load 10(tid)
400               36:   34(ivec2) VectorShuffle 35 35 0 1
401               37:   25(fvec4) ImageRead 33 36
402               38:   13(float) CompositeExtract 37 0
403               39:   13(float) Load 15(f)
404               40:   13(float) FAdd 39 38
405                               Store 15(f) 40
406               44:          41 Load 43(i3D)
407               45:    7(ivec3) Load 10(tid)
408               46:   25(fvec4) ImageRead 44 45
409               47:   13(float) CompositeExtract 46 0
410               48:   13(float) Load 15(f)
411               49:   13(float) FAdd 48 47
412                               Store 15(f) 49
413               53:          50 Load 52(i1DArray)
414               54:    7(ivec3) Load 10(tid)
415               55:   34(ivec2) VectorShuffle 54 54 0 1
416               56:   25(fvec4) ImageRead 53 55
417               57:   13(float) CompositeExtract 56 0
418               58:   13(float) Load 15(f)
419               59:   13(float) FAdd 58 57
420                               Store 15(f) 59
421               63:          60 Load 62(i2DArray)
422               64:    7(ivec3) Load 10(tid)
423               65:   25(fvec4) ImageRead 63 64
424               66:   13(float) CompositeExtract 65 0
425               67:   13(float) Load 15(f)
426               68:   13(float) FAdd 67 66
427                               Store 15(f) 68
428                               Store 71(i) 72
429               76:          73 Load 75(ii1D)
430               77:     22(ptr) AccessChain 10(tid) 21
431               78:      6(int) Load 77
432               80:   79(ivec4) ImageRead 76 78
433               81:     69(int) CompositeExtract 80 0
434               82:     69(int) Load 71(i)
435               83:     69(int) IAdd 82 81
436                               Store 71(i) 83
437               87:          84 Load 86(ii2D)
438               88:    7(ivec3) Load 10(tid)
439               89:   34(ivec2) VectorShuffle 88 88 0 1
440               90:   79(ivec4) ImageRead 87 89
441               91:     69(int) CompositeExtract 90 0
442               92:     69(int) Load 71(i)
443               93:     69(int) IAdd 92 91
444                               Store 71(i) 93
445               97:          94 Load 96(ii3D)
446               98:    7(ivec3) Load 10(tid)
447               99:   79(ivec4) ImageRead 97 98
448              100:     69(int) CompositeExtract 99 0
449              101:     69(int) Load 71(i)
450              102:     69(int) IAdd 101 100
451                               Store 71(i) 102
452              106:         103 Load 105(ii1DArray)
453              107:    7(ivec3) Load 10(tid)
454              108:   34(ivec2) VectorShuffle 107 107 0 1
455              109:   79(ivec4) ImageRead 106 108
456              110:     69(int) CompositeExtract 109 0
457              111:     69(int) Load 71(i)
458              112:     69(int) IAdd 111 110
459                               Store 71(i) 112
460              116:         113 Load 115(ii2DArray)
461              117:    7(ivec3) Load 10(tid)
462              118:   79(ivec4) ImageRead 116 117
463              119:     69(int) CompositeExtract 118 0
464              120:     69(int) Load 71(i)
465              121:     69(int) IAdd 120 119
466                               Store 71(i) 121
467              123:   13(float) Load 15(f)
468              124:     69(int) Load 71(i)
469              125:   13(float) ConvertSToF 124
470              126:   13(float) FAdd 123 125
471                               Store 122(storeTemp) 126
472              128:          41 Load 127(OUT)
473              129:    7(ivec3) Load 10(tid)
474              130:   13(float) Load 122(storeTemp)
475                               ImageWrite 128 129 130
476                               Return
477                               FunctionEnd