xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/baseResults/hlsl.imageload-subvec4.comp.out (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1hlsl.imageload-subvec4.comp
2Shader version: 500
3local_size = (8, 8, 8)
40:? Sequence
50:17  Function Definition: @main(vu3; ( temp void)
60:17    Function Parameters:
70:17      'tid' ( in 3-component vector of uint)
80:?     Sequence
90:18      Sequence
100:18        move second child to first child ( temp float)
110:18          'f' ( temp float)
120:18          Constant:
130:18            0.000000
140:19      add second child into first child ( temp float)
150:19        'f' ( temp float)
160:19        imageLoad ( temp float)
170:19          'i1D' (layout( binding=0 r32f) uniform image1D)
180:19          direct index ( temp uint)
190:19            'tid' ( in 3-component vector of uint)
200:19            Constant:
210:19              0 (const int)
220:20      add second child into first child ( temp float)
230:20        'f' ( temp float)
240:20        imageLoad ( temp float)
250:20          'i2D' (layout( binding=1 r32f) uniform image2D)
260:20          vector swizzle ( temp 2-component vector of uint)
270:20            'tid' ( in 3-component vector of uint)
280:20            Sequence
290:20              Constant:
300:20                0 (const int)
310:20              Constant:
320:20                1 (const int)
330:21      add second child into first child ( temp float)
340:21        'f' ( temp float)
350:21        imageLoad ( temp float)
360:21          'i3D' (layout( binding=2 r32f) uniform image3D)
370:21          'tid' ( in 3-component vector of uint)
380:22      add second child into first child ( temp float)
390:22        'f' ( temp float)
400:22        imageLoad ( temp float)
410:22          'i1DArray' (layout( binding=3 r32f) uniform image1DArray)
420:22          vector swizzle ( temp 2-component vector of uint)
430:22            'tid' ( in 3-component vector of uint)
440:22            Sequence
450:22              Constant:
460:22                0 (const int)
470:22              Constant:
480:22                1 (const int)
490:23      add second child into first child ( temp float)
500:23        'f' ( temp float)
510:23        imageLoad ( temp float)
520:23          'i2DArray' (layout( binding=4 r32f) uniform image2DArray)
530:23          'tid' ( in 3-component vector of uint)
540:25      Sequence
550:25        move second child to first child ( temp int)
560:25          'i' ( temp int)
570:25          Constant:
580:25            0 (const int)
590:26      add second child into first child ( temp int)
600:26        'i' ( temp int)
610:26        imageLoad ( temp int)
620:26          'ii1D' (layout( binding=5 r32i) uniform iimage1D)
630:26          direct index ( temp uint)
640:26            'tid' ( in 3-component vector of uint)
650:26            Constant:
660:26              0 (const int)
670:27      add second child into first child ( temp int)
680:27        'i' ( temp int)
690:27        imageLoad ( temp int)
700:27          'ii2D' (layout( binding=6 r32i) uniform iimage2D)
710:27          vector swizzle ( temp 2-component vector of uint)
720:27            'tid' ( in 3-component vector of uint)
730:27            Sequence
740:27              Constant:
750:27                0 (const int)
760:27              Constant:
770:27                1 (const int)
780:28      add second child into first child ( temp int)
790:28        'i' ( temp int)
800:28        imageLoad ( temp int)
810:28          'ii3D' (layout( binding=7 r32i) uniform iimage3D)
820:28          'tid' ( in 3-component vector of uint)
830:29      add second child into first child ( temp int)
840:29        'i' ( temp int)
850:29        imageLoad ( temp int)
860:29          'ii1DArray' (layout( binding=8 r32i) uniform iimage1DArray)
870:29          vector swizzle ( temp 2-component vector of uint)
880:29            'tid' ( in 3-component vector of uint)
890:29            Sequence
900:29              Constant:
910:29                0 (const int)
920:29              Constant:
930:29                1 (const int)
940:30      add second child into first child ( temp int)
950:30        'i' ( temp int)
960:30        imageLoad ( temp int)
970:30          'ii2DArray' (layout( binding=9 r32i) uniform iimage2DArray)
980:30          'tid' ( in 3-component vector of uint)
990:32      Sequence
1000:32        move second child to first child ( temp float)
1010:32          'storeTemp' ( temp float)
1020:32          add ( temp float)
1030:32            'f' ( temp float)
1040:32            Convert int to float ( temp float)
1050:32              'i' ( temp int)
1060:32        imageStore ( temp void)
1070:32          'OUT' (layout( binding=10 r32f) uniform image3D)
1080:32          'tid' ( in 3-component vector of uint)
1090:32          'storeTemp' ( temp float)
1100:32        'storeTemp' ( temp float)
1110:17  Function Definition: main( ( temp void)
1120:17    Function Parameters:
1130:?     Sequence
1140:17      move second child to first child ( temp 3-component vector of uint)
1150:?         'tid' ( temp 3-component vector of uint)
1160:?         'tid' ( in 3-component vector of uint GlobalInvocationID)
1170:17      Function Call: @main(vu3; ( temp void)
1180:?         'tid' ( temp 3-component vector of uint)
1190:?   Linker Objects
1200:?     'i1D' (layout( binding=0 r32f) uniform image1D)
1210:?     'i2D' (layout( binding=1 r32f) uniform image2D)
1220:?     'i3D' (layout( binding=2 r32f) uniform image3D)
1230:?     'i1DArray' (layout( binding=3 r32f) uniform image1DArray)
1240:?     'i2DArray' (layout( binding=4 r32f) uniform image2DArray)
1250:?     'ii1D' (layout( binding=5 r32i) uniform iimage1D)
1260:?     'ii2D' (layout( binding=6 r32i) uniform iimage2D)
1270:?     'ii3D' (layout( binding=7 r32i) uniform iimage3D)
1280:?     'ii1DArray' (layout( binding=8 r32i) uniform iimage1DArray)
1290:?     'ii2DArray' (layout( binding=9 r32i) uniform iimage2DArray)
1300:?     'OUT' (layout( binding=10 r32f) uniform image3D)
1310:?     'tid' ( in 3-component vector of uint GlobalInvocationID)
132
133
134Linked compute stage:
135
136
137Shader version: 500
138local_size = (8, 8, 8)
1390:? Sequence
1400:17  Function Definition: @main(vu3; ( temp void)
1410:17    Function Parameters:
1420:17      'tid' ( in 3-component vector of uint)
1430:?     Sequence
1440:18      Sequence
1450:18        move second child to first child ( temp float)
1460:18          'f' ( temp float)
1470:18          Constant:
1480:18            0.000000
1490:19      add second child into first child ( temp float)
1500:19        'f' ( temp float)
1510:19        imageLoad ( temp float)
1520:19          'i1D' (layout( binding=0 r32f) uniform image1D)
1530:19          direct index ( temp uint)
1540:19            'tid' ( in 3-component vector of uint)
1550:19            Constant:
1560:19              0 (const int)
1570:20      add second child into first child ( temp float)
1580:20        'f' ( temp float)
1590:20        imageLoad ( temp float)
1600:20          'i2D' (layout( binding=1 r32f) uniform image2D)
1610:20          vector swizzle ( temp 2-component vector of uint)
1620:20            'tid' ( in 3-component vector of uint)
1630:20            Sequence
1640:20              Constant:
1650:20                0 (const int)
1660:20              Constant:
1670:20                1 (const int)
1680:21      add second child into first child ( temp float)
1690:21        'f' ( temp float)
1700:21        imageLoad ( temp float)
1710:21          'i3D' (layout( binding=2 r32f) uniform image3D)
1720:21          'tid' ( in 3-component vector of uint)
1730:22      add second child into first child ( temp float)
1740:22        'f' ( temp float)
1750:22        imageLoad ( temp float)
1760:22          'i1DArray' (layout( binding=3 r32f) uniform image1DArray)
1770:22          vector swizzle ( temp 2-component vector of uint)
1780:22            'tid' ( in 3-component vector of uint)
1790:22            Sequence
1800:22              Constant:
1810:22                0 (const int)
1820:22              Constant:
1830:22                1 (const int)
1840:23      add second child into first child ( temp float)
1850:23        'f' ( temp float)
1860:23        imageLoad ( temp float)
1870:23          'i2DArray' (layout( binding=4 r32f) uniform image2DArray)
1880:23          'tid' ( in 3-component vector of uint)
1890:25      Sequence
1900:25        move second child to first child ( temp int)
1910:25          'i' ( temp int)
1920:25          Constant:
1930:25            0 (const int)
1940:26      add second child into first child ( temp int)
1950:26        'i' ( temp int)
1960:26        imageLoad ( temp int)
1970:26          'ii1D' (layout( binding=5 r32i) uniform iimage1D)
1980:26          direct index ( temp uint)
1990:26            'tid' ( in 3-component vector of uint)
2000:26            Constant:
2010:26              0 (const int)
2020:27      add second child into first child ( temp int)
2030:27        'i' ( temp int)
2040:27        imageLoad ( temp int)
2050:27          'ii2D' (layout( binding=6 r32i) uniform iimage2D)
2060:27          vector swizzle ( temp 2-component vector of uint)
2070:27            'tid' ( in 3-component vector of uint)
2080:27            Sequence
2090:27              Constant:
2100:27                0 (const int)
2110:27              Constant:
2120:27                1 (const int)
2130:28      add second child into first child ( temp int)
2140:28        'i' ( temp int)
2150:28        imageLoad ( temp int)
2160:28          'ii3D' (layout( binding=7 r32i) uniform iimage3D)
2170:28          'tid' ( in 3-component vector of uint)
2180:29      add second child into first child ( temp int)
2190:29        'i' ( temp int)
2200:29        imageLoad ( temp int)
2210:29          'ii1DArray' (layout( binding=8 r32i) uniform iimage1DArray)
2220:29          vector swizzle ( temp 2-component vector of uint)
2230:29            'tid' ( in 3-component vector of uint)
2240:29            Sequence
2250:29              Constant:
2260:29                0 (const int)
2270:29              Constant:
2280:29                1 (const int)
2290:30      add second child into first child ( temp int)
2300:30        'i' ( temp int)
2310:30        imageLoad ( temp int)
2320:30          'ii2DArray' (layout( binding=9 r32i) uniform iimage2DArray)
2330:30          'tid' ( in 3-component vector of uint)
2340:32      Sequence
2350:32        move second child to first child ( temp float)
2360:32          'storeTemp' ( temp float)
2370:32          add ( temp float)
2380:32            'f' ( temp float)
2390:32            Convert int to float ( temp float)
2400:32              'i' ( temp int)
2410:32        imageStore ( temp void)
2420:32          'OUT' (layout( binding=10 r32f) uniform image3D)
2430:32          'tid' ( in 3-component vector of uint)
2440:32          'storeTemp' ( temp float)
2450:32        'storeTemp' ( temp float)
2460:17  Function Definition: main( ( temp void)
2470:17    Function Parameters:
2480:?     Sequence
2490:17      move second child to first child ( temp 3-component vector of uint)
2500:?         'tid' ( temp 3-component vector of uint)
2510:?         'tid' ( in 3-component vector of uint GlobalInvocationID)
2520:17      Function Call: @main(vu3; ( temp void)
2530:?         'tid' ( temp 3-component vector of uint)
2540:?   Linker Objects
2550:?     'i1D' (layout( binding=0 r32f) uniform image1D)
2560:?     'i2D' (layout( binding=1 r32f) uniform image2D)
2570:?     'i3D' (layout( binding=2 r32f) uniform image3D)
2580:?     'i1DArray' (layout( binding=3 r32f) uniform image1DArray)
2590:?     'i2DArray' (layout( binding=4 r32f) uniform image2DArray)
2600:?     'ii1D' (layout( binding=5 r32i) uniform iimage1D)
2610:?     'ii2D' (layout( binding=6 r32i) uniform iimage2D)
2620:?     'ii3D' (layout( binding=7 r32i) uniform iimage3D)
2630:?     'ii1DArray' (layout( binding=8 r32i) uniform iimage1DArray)
2640:?     'ii2DArray' (layout( binding=9 r32i) uniform iimage2DArray)
2650:?     'OUT' (layout( binding=10 r32f) uniform image3D)
2660:?     'tid' ( in 3-component vector of uint GlobalInvocationID)
267
268// Module Version 10000
269// Generated by (magic number): 8000b
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) Binding 0
300                              Decorate 19(i1D) DescriptorSet 0
301                              Decorate 32(i2D) Binding 1
302                              Decorate 32(i2D) DescriptorSet 0
303                              Decorate 43(i3D) Binding 2
304                              Decorate 43(i3D) DescriptorSet 0
305                              Decorate 52(i1DArray) Binding 3
306                              Decorate 52(i1DArray) DescriptorSet 0
307                              Decorate 62(i2DArray) Binding 4
308                              Decorate 62(i2DArray) DescriptorSet 0
309                              Decorate 75(ii1D) Binding 5
310                              Decorate 75(ii1D) DescriptorSet 0
311                              Decorate 86(ii2D) Binding 6
312                              Decorate 86(ii2D) DescriptorSet 0
313                              Decorate 96(ii3D) Binding 7
314                              Decorate 96(ii3D) DescriptorSet 0
315                              Decorate 105(ii1DArray) Binding 8
316                              Decorate 105(ii1DArray) DescriptorSet 0
317                              Decorate 115(ii2DArray) Binding 9
318                              Decorate 115(ii2DArray) DescriptorSet 0
319                              Decorate 127(OUT) Binding 10
320                              Decorate 127(OUT) DescriptorSet 0
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
478