yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Zackery Mason-BlaugLiveTraverser no longer traverses switch cases that are statically not accessed0b3e8560

main
19.1 KiB327 linesraw
1liveTraverser.switch.vert
2Shader version: 460
30:? Sequence
40:25  Function Definition: main( ( global void)
50:25    Function Parameters: 
60:27    Sequence
70:27      switch
80:27      condition
90:27        Constant:
100:27          2 (const int)
110:27      body
120:27        Sequence
130:28          case:  with expression
140:28            Constant:
150:28              2 (const int)
160:?           Sequence
170:28            Branch: Break
180:29          case:  with expression
190:29            Constant:
200:29              1 (const int)
210:?           Sequence
220:30            move second child to first child ( temp highp 4-component vector of float)
230:30              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
240:30                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
250:30                Constant:
260:30                  0 (const uint)
270:30              'n0' (layout( location=11) in highp 4-component vector of float)
280:34      switch
290:34      condition
300:34        Constant:
310:34          3 (const int)
320:34      body
330:34        Sequence
340:35          default: 
350:?           Sequence
360:35            Branch: Break
370:36          case:  with expression
380:36            Constant:
390:36              1 (const int)
400:?           Sequence
410:37            move second child to first child ( temp highp 4-component vector of float)
420:37              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
430:37                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
440:37                Constant:
450:37                  0 (const uint)
460:37              'n1' (layout( location=12) in highp 4-component vector of float)
470:41      switch
480:41      condition
490:41        Constant:
500:41          3 (const int)
510:41      body
520:41        Sequence
530:42          case:  with expression
540:42            Constant:
550:42              2 (const int)
560:43          case:  with expression
570:43            Constant:
580:43              1 (const int)
590:?           Sequence
600:44            move second child to first child ( temp highp 4-component vector of float)
610:44              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
620:44                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
630:44                Constant:
640:44                  0 (const uint)
650:44              'n2' (layout( location=13) in highp 4-component vector of float)
660:48      switch
670:48      condition
680:48        Constant:
690:48          1 (const int)
700:48      body
710:48        Sequence
720:49          case:  with expression
730:49            Constant:
740:49              -1 (const int)
750:?           Sequence
760:50            move second child to first child ( temp highp 4-component vector of float)
770:50              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
780:50                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
790:50                Constant:
800:50                  0 (const uint)
810:50              'n3' (layout( location=14) in highp 4-component vector of float)
820:51            Branch: Break
830:52          case:  with expression
840:52            Constant:
850:52              1 (const int)
860:?           Sequence
870:53            move second child to first child ( temp highp 4-component vector of float)
880:53              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
890:53                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
900:53                Constant:
910:53                  0 (const uint)
920:53              'a0' (layout( location=0) in highp 4-component vector of float)
930:54            Branch: Break
940:55            move second child to first child ( temp highp 4-component vector of float)
950:55              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
960:55                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
970:55                Constant:
980:55                  0 (const uint)
990:55              'n4' (layout( location=15) in highp 4-component vector of float)
1000:56          case:  with expression
1010:56            Constant:
1020:56              0 (const int)
1030:?           Sequence
1040:57            move second child to first child ( temp highp 4-component vector of float)
1050:57              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
1060:57                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
1070:57                Constant:
1080:57                  0 (const uint)
1090:57              'n5' (layout( location=16) in highp 4-component vector of float)
1100:63      switch
1110:63      condition
1120:63        Constant:
1130:63          1 (const int)
1140:63      body
1150:63        Sequence
1160:64          case:  with expression
1170:64            Constant:
1180:64              1 (const uint)
1190:?           Sequence
1200:65            move second child to first child ( temp highp 4-component vector of float)
1210:65              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
1220:65                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
1230:65                Constant:
1240:65                  0 (const uint)
1250:65              'a1' (layout( location=1) in highp 4-component vector of float)
1260:69      switch
1270:69      condition
1280:69        Constant:
1290:69          -1 (const int)
1300:69      body
1310:69        Sequence
1320:70          case:  with expression
1330:70            Constant:
1340:70              4294967295 (const uint)
1350:?           Sequence
1360:71            move second child to first child ( temp highp 4-component vector of float)
1370:71              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
1380:71                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
1390:71                Constant:
1400:71                  0 (const uint)
1410:71              'a2' (layout( location=2) in highp 4-component vector of float)
1420:75      switch
1430:75      condition
1440:75        Constant:
1450:75          1 (const int)
1460:75      body
1470:75        Sequence
1480:76          case:  with expression
1490:76            Constant:
1500:76              1 (const int)
1510:?           Sequence
1520:77            move second child to first child ( temp highp 4-component vector of float)
1530:77              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
1540:77                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
1550:77                Constant:
1560:77                  0 (const uint)
1570:77              'a3' (layout( location=3) in highp 4-component vector of float)
1580:78            Branch: Break
1590:79          case:  with expression
1600:79            Constant:
1610:79              -1 (const int)
1620:?           Sequence
1630:80            move second child to first child ( temp highp 4-component vector of float)
1640:80              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
1650:80                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
1660:80                Constant:
1670:80                  0 (const uint)
1680:80              'n6' (layout( location=17) in highp 4-component vector of float)
1690:84      switch
1700:84      condition
1710:84        Constant:
1720:84          1 (const int)
1730:84      body
1740:84        Sequence
1750:85          default: 
1760:86          case:  with expression
1770:86            Constant:
1780:86              2 (const int)
1790:?           Sequence
1800:87            move second child to first child ( temp highp 4-component vector of float)
1810:87              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
1820:87                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
1830:87                Constant:
1840:87                  0 (const uint)
1850:87              'a4' (layout( location=4) in highp 4-component vector of float)
1860:91      switch
1870:91      condition
1880:91        Constant:
1890:91          1 (const int)
1900:91      body
1910:91        Sequence
1920:92          case:  with expression
1930:92            Constant:
1940:92              1 (const int)
1950:?           Sequence
1960:93            move second child to first child ( temp highp 4-component vector of float)
1970:93              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
1980:93                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
1990:93                Constant:
2000:93                  0 (const uint)
2010:93              'a5' (layout( location=5) in highp 4-component vector of float)
2020:94            Branch: Break
2030:95          case:  with expression
2040:95            Constant:
2050:95              2 (const int)
2060:?           Sequence
2070:96            move second child to first child ( temp highp 4-component vector of float)
2080:96              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
2090:96                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
2100:96                Constant:
2110:96                  0 (const uint)
2120:96              'n7' (layout( location=18) in highp 4-component vector of float)
2130:100      switch
2140:100      condition
2150:100        Constant:
2160:100          8 (const int)
2170:100      body
2180:100        Sequence
2190:101          case:  with expression
2200:101            Constant:
2210:101              8 (const int)
2220:?           Sequence
2230:102            move second child to first child ( temp highp 4-component vector of float)
2240:102              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
2250:102                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
2260:102                Constant:
2270:102                  0 (const uint)
2280:102              'a6' (layout( location=6) in highp 4-component vector of float)
2290:103            Branch: Break
2300:104          case:  with expression
2310:104            Constant:
2320:104              7 (const int)
2330:?           Sequence
2340:105            move second child to first child ( temp highp 4-component vector of float)
2350:105              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
2360:105                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
2370:105                Constant:
2380:105                  0 (const uint)
2390:105              'n8' (layout( location=19) in highp 4-component vector of float)
2400:106            Branch: Break
2410:109      Sequence
2420:109        move second child to first child ( temp highp int)
2430:109          'x' ( temp highp int)
2440:109          Constant:
2450:109            2 (const int)
2460:112      switch
2470:112      condition
2480:112        'x' ( temp highp int)
2490:112      body
2500:112        Sequence
2510:113          case:  with expression
2520:113            Constant:
2530:113              1 (const int)
2540:?           Sequence
2550:114            move second child to first child ( temp highp 4-component vector of float)
2560:114              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
2570:114                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
2580:114                Constant:
2590:114                  0 (const uint)
2600:114              'a7' (layout( location=7) in highp 4-component vector of float)
2610:115            Branch: Break
2620:116          case:  with expression
2630:116            Constant:
2640:116              2 (const int)
2650:?           Sequence
2660:117            move second child to first child ( temp highp 4-component vector of float)
2670:117              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
2680:117                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
2690:117                Constant:
2700:117                  0 (const uint)
2710:117              'a8' (layout( location=8) in highp 4-component vector of float)
2720:118            Branch: Break
2730:122      switch
2740:122      condition
2750:122        add ( temp highp int)
2760:122          Constant:
2770:122            1 (const int)
2780:122          'x' ( temp highp int)
2790:122      body
2800:122        Sequence
2810:123          case:  with expression
2820:123            Constant:
2830:123              1 (const int)
2840:?           Sequence
2850:124            move second child to first child ( temp highp 4-component vector of float)
2860:124              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
2870:124                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
2880:124                Constant:
2890:124                  0 (const uint)
2900:124              'a9' (layout( location=9) in highp 4-component vector of float)
2910:125            Branch: Break
2920:126          case:  with expression
2930:126            Constant:
2940:126              3 (const int)
2950:?           Sequence
2960:127            move second child to first child ( temp highp 4-component vector of float)
2970:127              gl_Position: direct index for structure ( gl_Position highp 4-component vector of float Position)
2980:127                'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
2990:127                Constant:
3000:127                  0 (const uint)
3010:127              'a10' (layout( location=10) in highp 4-component vector of float)
3020:128            Branch: Break
3030:?   Linker Objects
3040:?     'a0' (layout( location=0) in highp 4-component vector of float)
3050:?     'a1' (layout( location=1) in highp 4-component vector of float)
3060:?     'a2' (layout( location=2) in highp 4-component vector of float)
3070:?     'a3' (layout( location=3) in highp 4-component vector of float)
3080:?     'a4' (layout( location=4) in highp 4-component vector of float)
3090:?     'a5' (layout( location=5) in highp 4-component vector of float)
3100:?     'a6' (layout( location=6) in highp 4-component vector of float)
3110:?     'a7' (layout( location=7) in highp 4-component vector of float)
3120:?     'a8' (layout( location=8) in highp 4-component vector of float)
3130:?     'a9' (layout( location=9) in highp 4-component vector of float)
3140:?     'a10' (layout( location=10) in highp 4-component vector of float)
3150:?     'n0' (layout( location=11) in highp 4-component vector of float)
3160:?     'n1' (layout( location=12) in highp 4-component vector of float)
3170:?     'n2' (layout( location=13) in highp 4-component vector of float)
3180:?     'n3' (layout( location=14) in highp 4-component vector of float)
3190:?     'n4' (layout( location=15) in highp 4-component vector of float)
3200:?     'n5' (layout( location=16) in highp 4-component vector of float)
3210:?     'n6' (layout( location=17) in highp 4-component vector of float)
3220:?     'n7' (layout( location=18) in highp 4-component vector of float)
3230:?     'n8' (layout( location=19) in highp 4-component vector of float)
3240:?     'n9' (layout( location=20) in highp 4-component vector of float)
3250:?     'anon@0' ( out block{ gl_Position 4-component vector of float Position gl_Position,  gl_PointSize float PointSize gl_PointSize,  out unsized 1-element array of float ClipDistance gl_ClipDistance,  out unsized 1-element array of float CullDistance gl_CullDistance})
326
327SPIR-V is not generated for failed compile or link