1forLoop.frag
2Shader version: 130
30:? Sequence
40:10  Function Definition: main( ( global void)
50:10    Function Parameters:
60:12    Sequence
70:12      Sequence
80:12        move second child to first child ( temp 4-component vector of float)
90:12          'color' ( temp 4-component vector of float)
100:12          'BaseColor' ( smooth in 4-component vector of float)
110:14      Sequence
120:14        Sequence
130:14          move second child to first child ( temp int)
140:14            'i' ( temp int)
150:14            Constant:
160:14              0 (const int)
170:14        Loop with condition tested first
180:14          Loop Condition
190:14          Compare Less Than ( temp bool)
200:14            'i' ( temp int)
210:14            'Count' ( uniform int)
220:14          Loop Body
230:15          Sequence
240:15            add second child into first child ( temp 4-component vector of float)
250:15              'color' ( temp 4-component vector of float)
260:15              'bigColor' ( uniform 4-component vector of float)
270:14          Loop Terminal Expression
280:14          Pre-Increment ( temp int)
290:14            'i' ( temp int)
300:18      move second child to first child ( temp 4-component vector of float)
310:18        'gl_FragColor' ( fragColor 4-component vector of float FragColor)
320:18        'color' ( temp 4-component vector of float)
330:20      Sequence
340:20        move second child to first child ( temp float)
350:20          'sum' ( temp float)
360:20          Constant:
370:20            0.000000
380:21      Sequence
390:21        Sequence
400:21          move second child to first child ( temp int)
410:21            'i' ( temp int)
420:21            Constant:
430:21              0 (const int)
440:21        Loop with condition tested first
450:21          Loop Condition
460:21          Compare Less Than ( temp bool)
470:21            'i' ( temp int)
480:21            Constant:
490:21              4 (const int)
500:21          Loop Body
510:22          add second child into first child ( temp float)
520:22            'sum' ( temp float)
530:22            Convert uint to float ( temp float)
540:22              indirect index ( temp uint)
550:22                'v4' ( uniform 4-component vector of uint)
560:22                'i' ( temp int)
570:21          Loop Terminal Expression
580:21          Pre-Increment ( temp int)
590:21            'i' ( temp int)
600:26      Sequence
610:26        Sequence
620:26          move second child to first child ( temp int)
630:26            'i' ( temp int)
640:26            Constant:
650:26              0 (const int)
660:26        Loop with condition tested first
670:26          Loop Condition
680:26          Compare Less Than ( temp bool)
690:26            'i' ( temp int)
700:26            Constant:
710:26              4 (const int)
720:26          Loop Body
730:27          move second child to first child ( temp float)
740:27            indirect index ( temp float)
750:27              'tv4' ( temp 4-component vector of float)
760:27              'i' ( temp int)
770:27            Convert uint to float ( temp float)
780:27              component-wise multiply ( temp uint)
790:27                indirect index ( temp uint)
800:27                  'v4' ( uniform 4-component vector of uint)
810:27                  'i' ( temp int)
820:27                Constant:
830:27                  4 (const uint)
840:26          Loop Terminal Expression
850:26          Pre-Increment ( temp int)
860:26            'i' ( temp int)
870:29      add second child into first child ( temp 4-component vector of float)
880:29        'gl_FragColor' ( fragColor 4-component vector of float FragColor)
890:29        add ( temp 4-component vector of float)
900:29          Construct vec4 ( temp 4-component vector of float)
910:29            'sum' ( temp float)
920:29          'tv4' ( temp 4-component vector of float)
930:32      move second child to first child ( temp 3-component vector of float)
940:32        vector swizzle ( temp 3-component vector of float)
950:32          'r' ( temp 4-component vector of float)
960:32          Sequence
970:32            Constant:
980:32              0 (const int)
990:32            Constant:
1000:32              1 (const int)
1010:32            Constant:
1020:32              2 (const int)
1030:32        vector swizzle ( temp 3-component vector of float)
1040:32          'BaseColor' ( smooth in 4-component vector of float)
1050:32          Sequence
1060:32            Constant:
1070:32              0 (const int)
1080:32            Constant:
1090:32              1 (const int)
1100:32            Constant:
1110:32              2 (const int)
1120:34      Sequence
1130:34        Sequence
1140:34          move second child to first child ( temp int)
1150:34            'i' ( temp int)
1160:34            Constant:
1170:34              0 (const int)
1180:34        Loop with condition tested first
1190:34          Loop Condition
1200:34          Compare Less Than ( temp bool)
1210:34            'i' ( temp int)
1220:34            'Count' ( uniform int)
1230:34          Loop Body
1240:35          move second child to first child ( temp float)
1250:35            direct index ( temp float)
1260:35              'r' ( temp 4-component vector of float)
1270:35              Constant:
1280:35                3 (const int)
1290:35            'f' ( smooth in float)
1300:34          Loop Terminal Expression
1310:34          Pre-Increment ( temp int)
1320:34            'i' ( temp int)
1330:37      add second child into first child ( temp 3-component vector of float)
1340:37        vector swizzle ( temp 3-component vector of float)
1350:37          'gl_FragColor' ( fragColor 4-component vector of float FragColor)
1360:37          Sequence
1370:37            Constant:
1380:37              0 (const int)
1390:37            Constant:
1400:37              1 (const int)
1410:37            Constant:
1420:37              2 (const int)
1430:37        vector swizzle ( temp 3-component vector of float)
1440:37          'r' ( temp 4-component vector of float)
1450:37          Sequence
1460:37            Constant:
1470:37              0 (const int)
1480:37            Constant:
1490:37              1 (const int)
1500:37            Constant:
1510:37              2 (const int)
1520:39      Sequence
1530:39        Sequence
1540:39          move second child to first child ( temp int)
1550:39            'i' ( temp int)
1560:39            Constant:
1570:39              0 (const int)
1580:39        Loop with condition tested first
1590:39          Loop Condition
1600:39          Compare Less Than ( temp bool)
1610:39            'i' ( temp int)
1620:39            Constant:
1630:39              16 (const int)
1640:39          Loop Body
1650:40          vector scale second child into first child ( temp 4-component vector of float)
1660:40            'gl_FragColor' ( fragColor 4-component vector of float FragColor)
1670:40            'f' ( smooth in float)
1680:39          Loop Terminal Expression
1690:39          add second child into first child ( temp int)
1700:39            'i' ( temp int)
1710:39            Constant:
1720:39              4 (const int)
1730:?   Linker Objects
1740:?     'bigColor' ( uniform 4-component vector of float)
1750:?     'BaseColor' ( smooth in 4-component vector of float)
1760:?     'f' ( smooth in float)
1770:?     'Count' ( uniform int)
1780:?     'v4' ( uniform 4-component vector of uint)
179
180
181Linked fragment stage:
182
183
184Shader version: 130
1850:? Sequence
1860:10  Function Definition: main( ( global void)
1870:10    Function Parameters:
1880:12    Sequence
1890:12      Sequence
1900:12        move second child to first child ( temp 4-component vector of float)
1910:12          'color' ( temp 4-component vector of float)
1920:12          'BaseColor' ( smooth in 4-component vector of float)
1930:14      Sequence
1940:14        Sequence
1950:14          move second child to first child ( temp int)
1960:14            'i' ( temp int)
1970:14            Constant:
1980:14              0 (const int)
1990:14        Loop with condition tested first
2000:14          Loop Condition
2010:14          Compare Less Than ( temp bool)
2020:14            'i' ( temp int)
2030:14            'Count' ( uniform int)
2040:14          Loop Body
2050:15          Sequence
2060:15            add second child into first child ( temp 4-component vector of float)
2070:15              'color' ( temp 4-component vector of float)
2080:15              'bigColor' ( uniform 4-component vector of float)
2090:14          Loop Terminal Expression
2100:14          Pre-Increment ( temp int)
2110:14            'i' ( temp int)
2120:18      move second child to first child ( temp 4-component vector of float)
2130:18        'gl_FragColor' ( fragColor 4-component vector of float FragColor)
2140:18        'color' ( temp 4-component vector of float)
2150:20      Sequence
2160:20        move second child to first child ( temp float)
2170:20          'sum' ( temp float)
2180:20          Constant:
2190:20            0.000000
2200:21      Sequence
2210:21        Sequence
2220:21          move second child to first child ( temp int)
2230:21            'i' ( temp int)
2240:21            Constant:
2250:21              0 (const int)
2260:21        Loop with condition tested first
2270:21          Loop Condition
2280:21          Compare Less Than ( temp bool)
2290:21            'i' ( temp int)
2300:21            Constant:
2310:21              4 (const int)
2320:21          Loop Body
2330:22          add second child into first child ( temp float)
2340:22            'sum' ( temp float)
2350:22            Convert uint to float ( temp float)
2360:22              indirect index ( temp uint)
2370:22                'v4' ( uniform 4-component vector of uint)
2380:22                'i' ( temp int)
2390:21          Loop Terminal Expression
2400:21          Pre-Increment ( temp int)
2410:21            'i' ( temp int)
2420:26      Sequence
2430:26        Sequence
2440:26          move second child to first child ( temp int)
2450:26            'i' ( temp int)
2460:26            Constant:
2470:26              0 (const int)
2480:26        Loop with condition tested first
2490:26          Loop Condition
2500:26          Compare Less Than ( temp bool)
2510:26            'i' ( temp int)
2520:26            Constant:
2530:26              4 (const int)
2540:26          Loop Body
2550:27          move second child to first child ( temp float)
2560:27            indirect index ( temp float)
2570:27              'tv4' ( temp 4-component vector of float)
2580:27              'i' ( temp int)
2590:27            Convert uint to float ( temp float)
2600:27              component-wise multiply ( temp uint)
2610:27                indirect index ( temp uint)
2620:27                  'v4' ( uniform 4-component vector of uint)
2630:27                  'i' ( temp int)
2640:27                Constant:
2650:27                  4 (const uint)
2660:26          Loop Terminal Expression
2670:26          Pre-Increment ( temp int)
2680:26            'i' ( temp int)
2690:29      add second child into first child ( temp 4-component vector of float)
2700:29        'gl_FragColor' ( fragColor 4-component vector of float FragColor)
2710:29        add ( temp 4-component vector of float)
2720:29          Construct vec4 ( temp 4-component vector of float)
2730:29            'sum' ( temp float)
2740:29          'tv4' ( temp 4-component vector of float)
2750:32      move second child to first child ( temp 3-component vector of float)
2760:32        vector swizzle ( temp 3-component vector of float)
2770:32          'r' ( temp 4-component vector of float)
2780:32          Sequence
2790:32            Constant:
2800:32              0 (const int)
2810:32            Constant:
2820:32              1 (const int)
2830:32            Constant:
2840:32              2 (const int)
2850:32        vector swizzle ( temp 3-component vector of float)
2860:32          'BaseColor' ( smooth in 4-component vector of float)
2870:32          Sequence
2880:32            Constant:
2890:32              0 (const int)
2900:32            Constant:
2910:32              1 (const int)
2920:32            Constant:
2930:32              2 (const int)
2940:34      Sequence
2950:34        Sequence
2960:34          move second child to first child ( temp int)
2970:34            'i' ( temp int)
2980:34            Constant:
2990:34              0 (const int)
3000:34        Loop with condition tested first
3010:34          Loop Condition
3020:34          Compare Less Than ( temp bool)
3030:34            'i' ( temp int)
3040:34            'Count' ( uniform int)
3050:34          Loop Body
3060:35          move second child to first child ( temp float)
3070:35            direct index ( temp float)
3080:35              'r' ( temp 4-component vector of float)
3090:35              Constant:
3100:35                3 (const int)
3110:35            'f' ( smooth in float)
3120:34          Loop Terminal Expression
3130:34          Pre-Increment ( temp int)
3140:34            'i' ( temp int)
3150:37      add second child into first child ( temp 3-component vector of float)
3160:37        vector swizzle ( temp 3-component vector of float)
3170:37          'gl_FragColor' ( fragColor 4-component vector of float FragColor)
3180:37          Sequence
3190:37            Constant:
3200:37              0 (const int)
3210:37            Constant:
3220:37              1 (const int)
3230:37            Constant:
3240:37              2 (const int)
3250:37        vector swizzle ( temp 3-component vector of float)
3260:37          'r' ( temp 4-component vector of float)
3270:37          Sequence
3280:37            Constant:
3290:37              0 (const int)
3300:37            Constant:
3310:37              1 (const int)
3320:37            Constant:
3330:37              2 (const int)
3340:39      Sequence
3350:39        Sequence
3360:39          move second child to first child ( temp int)
3370:39            'i' ( temp int)
3380:39            Constant:
3390:39              0 (const int)
3400:39        Loop with condition tested first
3410:39          Loop Condition
3420:39          Compare Less Than ( temp bool)
3430:39            'i' ( temp int)
3440:39            Constant:
3450:39              16 (const int)
3460:39          Loop Body
3470:40          vector scale second child into first child ( temp 4-component vector of float)
3480:40            'gl_FragColor' ( fragColor 4-component vector of float FragColor)
3490:40            'f' ( smooth in float)
3500:39          Loop Terminal Expression
3510:39          add second child into first child ( temp int)
3520:39            'i' ( temp int)
3530:39            Constant:
3540:39              4 (const int)
3550:?   Linker Objects
3560:?     'bigColor' ( uniform 4-component vector of float)
3570:?     'BaseColor' ( smooth in 4-component vector of float)
3580:?     'f' ( smooth in float)
3590:?     'Count' ( uniform int)
3600:?     'v4' ( uniform 4-component vector of uint)
361
362