1variableArrayIndex.frag
2WARNING: 0:3: varying deprecated in version 130; may be removed in future release
3
4Shader version: 130
50:? Sequence
60:29  Function Definition: main( ( global void)
70:29    Function Parameters:
80:?     Sequence
90:32      Sequence
100:32        move second child to first child ( temp int)
110:32          'iLocal' ( temp int)
120:32          'Count' ( uniform int)
130:34      Test condition and select ( temp void)
140:34        Condition
150:34        Compare Greater Than ( temp bool)
160:34          i: direct index for structure ( global int)
170:34            direct index ( temp structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
180:34              s2_1: direct index for structure ( global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
190:34                'foo3' ( uniform structure{ global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1} s2_1,  global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
200:34                Constant:
210:34                  0 (const int)
220:34              Constant:
230:34                1 (const int)
240:34            Constant:
250:34              0 (const int)
260:34          Constant:
270:34            0 (const int)
280:34        true case
290:35        move second child to first child ( temp float)
300:35          'scale' ( temp float)
310:35          f: direct index for structure ( global float)
320:35            s1_1: direct index for structure ( global structure{ global int i,  global float f})
330:35              indirect index ( temp structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
340:35                'foo2' ( uniform 5-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
350:35                add ( temp int)
360:35                  add ( temp int)
370:35                    i: direct index for structure ( global int)
380:35                      indirect index ( temp structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
390:35                        s2_1: direct index for structure ( global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
400:35                          'foo3' ( uniform structure{ global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1} s2_1,  global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
410:35                          Constant:
420:35                            0 (const int)
430:35                        i: direct index for structure ( global int)
440:35                          'foo' ( uniform structure{ global int i,  global float f})
450:35                          Constant:
460:35                            0 (const int)
470:35                      Constant:
480:35                        0 (const int)
490:35                    Constant:
500:35                      2 (const int)
510:35                  Pre-Increment ( temp int)
520:35                    'iLocal' ( temp int)
530:35              Constant:
540:35                2 (const int)
550:35            Constant:
560:35              1 (const int)
570:34        false case
580:37        move second child to first child ( temp float)
590:37          'scale' ( temp float)
600:37          f: direct index for structure ( global float)
610:37            s1_1: direct index for structure ( global structure{ global int i,  global float f})
620:37              direct index ( temp structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
630:37                s2_1: direct index for structure ( global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
640:37                  'foo3' ( uniform structure{ global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1} s2_1,  global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
650:37                  Constant:
660:37                    0 (const int)
670:37                Constant:
680:37                  0 (const int)
690:37              Constant:
700:37                2 (const int)
710:37            Constant:
720:37              1 (const int)
730:43      move second child to first child ( temp 4-component vector of float)
740:43        'gl_FragColor' ( fragColor 4-component vector of float FragColor)
750:43        vector-scale ( temp 4-component vector of float)
760:43          'scale' ( temp float)
770:43          texture ( global 4-component vector of float)
780:43            'sampler' ( uniform sampler2D)
790:43            'coord' ( smooth in 2-component vector of float)
800:45      Sequence
810:45        move second child to first child ( temp 3-element array of 2-component vector of float)
820:45          'constructed' ( temp 3-element array of 2-component vector of float)
830:45          Construct vec2 ( temp 3-element array of 2-component vector of float)
840:45            'coord' ( smooth in 2-component vector of float)
850:45            Construct vec2 ( temp 2-component vector of float)
860:45              'scale' ( temp float)
870:45            Constant:
880:45              1.000000
890:45              2.000000
900:46      add second child into first child ( temp 4-component vector of float)
910:46        'gl_FragColor' ( fragColor 4-component vector of float FragColor)
920:46        Construct vec4 ( temp 4-component vector of float)
930:46          indirect index ( temp 2-component vector of float)
940:46            'constructed' ( temp 3-element array of 2-component vector of float)
950:46            i: direct index for structure ( global int)
960:46              'foo' ( uniform structure{ global int i,  global float f})
970:46              Constant:
980:46                0 (const int)
990:46          indirect index ( temp 2-component vector of float)
1000:46            'constructed' ( temp 3-element array of 2-component vector of float)
1010:46            i: direct index for structure ( global int)
1020:46              'foo' ( uniform structure{ global int i,  global float f})
1030:46              Constant:
1040:46                0 (const int)
1050:?   Linker Objects
1060:?     'sampler' ( uniform sampler2D)
1070:?     'coord' ( smooth in 2-component vector of float)
1080:?     'foo' ( uniform structure{ global int i,  global float f})
1090:?     'foo2' ( uniform 5-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
1100:?     'foo3' ( uniform structure{ global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1} s2_1,  global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
1110:?     'Count' ( uniform int)
112
113
114Linked fragment stage:
115
116
117Shader version: 130
1180:? Sequence
1190:29  Function Definition: main( ( global void)
1200:29    Function Parameters:
1210:?     Sequence
1220:32      Sequence
1230:32        move second child to first child ( temp int)
1240:32          'iLocal' ( temp int)
1250:32          'Count' ( uniform int)
1260:34      Test condition and select ( temp void)
1270:34        Condition
1280:34        Compare Greater Than ( temp bool)
1290:34          i: direct index for structure ( global int)
1300:34            direct index ( temp structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
1310:34              s2_1: direct index for structure ( global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
1320:34                'foo3' ( uniform structure{ global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1} s2_1,  global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
1330:34                Constant:
1340:34                  0 (const int)
1350:34              Constant:
1360:34                1 (const int)
1370:34            Constant:
1380:34              0 (const int)
1390:34          Constant:
1400:34            0 (const int)
1410:34        true case
1420:35        move second child to first child ( temp float)
1430:35          'scale' ( temp float)
1440:35          f: direct index for structure ( global float)
1450:35            s1_1: direct index for structure ( global structure{ global int i,  global float f})
1460:35              indirect index ( temp structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
1470:35                'foo2' ( uniform 5-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
1480:35                add ( temp int)
1490:35                  add ( temp int)
1500:35                    i: direct index for structure ( global int)
1510:35                      indirect index ( temp structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
1520:35                        s2_1: direct index for structure ( global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
1530:35                          'foo3' ( uniform structure{ global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1} s2_1,  global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
1540:35                          Constant:
1550:35                            0 (const int)
1560:35                        i: direct index for structure ( global int)
1570:35                          'foo' ( uniform structure{ global int i,  global float f})
1580:35                          Constant:
1590:35                            0 (const int)
1600:35                      Constant:
1610:35                        0 (const int)
1620:35                    Constant:
1630:35                      2 (const int)
1640:35                  Pre-Increment ( temp int)
1650:35                    'iLocal' ( temp int)
1660:35              Constant:
1670:35                2 (const int)
1680:35            Constant:
1690:35              1 (const int)
1700:34        false case
1710:37        move second child to first child ( temp float)
1720:37          'scale' ( temp float)
1730:37          f: direct index for structure ( global float)
1740:37            s1_1: direct index for structure ( global structure{ global int i,  global float f})
1750:37              direct index ( temp structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
1760:37                s2_1: direct index for structure ( global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
1770:37                  'foo3' ( uniform structure{ global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1} s2_1,  global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
1780:37                  Constant:
1790:37                    0 (const int)
1800:37                Constant:
1810:37                  0 (const int)
1820:37              Constant:
1830:37                2 (const int)
1840:37            Constant:
1850:37              1 (const int)
1860:43      move second child to first child ( temp 4-component vector of float)
1870:43        'gl_FragColor' ( fragColor 4-component vector of float FragColor)
1880:43        vector-scale ( temp 4-component vector of float)
1890:43          'scale' ( temp float)
1900:43          texture ( global 4-component vector of float)
1910:43            'sampler' ( uniform sampler2D)
1920:43            'coord' ( smooth in 2-component vector of float)
1930:45      Sequence
1940:45        move second child to first child ( temp 3-element array of 2-component vector of float)
1950:45          'constructed' ( temp 3-element array of 2-component vector of float)
1960:45          Construct vec2 ( temp 3-element array of 2-component vector of float)
1970:45            'coord' ( smooth in 2-component vector of float)
1980:45            Construct vec2 ( temp 2-component vector of float)
1990:45              'scale' ( temp float)
2000:45            Constant:
2010:45              1.000000
2020:45              2.000000
2030:46      add second child into first child ( temp 4-component vector of float)
2040:46        'gl_FragColor' ( fragColor 4-component vector of float FragColor)
2050:46        Construct vec4 ( temp 4-component vector of float)
2060:46          indirect index ( temp 2-component vector of float)
2070:46            'constructed' ( temp 3-element array of 2-component vector of float)
2080:46            i: direct index for structure ( global int)
2090:46              'foo' ( uniform structure{ global int i,  global float f})
2100:46              Constant:
2110:46                0 (const int)
2120:46          indirect index ( temp 2-component vector of float)
2130:46            'constructed' ( temp 3-element array of 2-component vector of float)
2140:46            i: direct index for structure ( global int)
2150:46              'foo' ( uniform structure{ global int i,  global float f})
2160:46              Constant:
2170:46                0 (const int)
2180:?   Linker Objects
2190:?     'sampler' ( uniform sampler2D)
2200:?     'coord' ( smooth in 2-component vector of float)
2210:?     'foo' ( uniform structure{ global int i,  global float f})
2220:?     'foo2' ( uniform 5-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
2230:?     'foo3' ( uniform structure{ global 3-element array of structure{ global int i,  global float f,  global structure{ global int i,  global float f} s1_1} s2_1,  global int i,  global float f,  global structure{ global int i,  global float f} s1_1})
2240:?     'Count' ( uniform int)
225
226