1forwardRef.frag
2Shader version: 110
30:? Sequence
40:11  Function Definition: main( ( global void)
50:11    Function Parameters:
60:13    Sequence
70:13      Sequence
80:13        move second child to first child ( temp 4-component vector of float)
90:13          'color' ( temp 4-component vector of float)
100:13          Construct vec4 ( temp 4-component vector of float)
110:13            Function Call: foo(vf4; ( global float)
120:13              'BaseColor' ( smooth in 4-component vector of float)
130:15      Function Call: bar( ( global void)
140:16      Sequence
150:16        move second child to first child ( temp float)
160:16          'f' ( temp float)
170:16          Function Call: unreachableReturn( ( global float)
180:18      move second child to first child ( temp 4-component vector of float)
190:18        'gl_FragColor' ( fragColor 4-component vector of float FragColor)
200:18        vector-scale ( temp 4-component vector of float)
210:18          'color' ( temp 4-component vector of float)
220:18          'f' ( temp float)
230:21  Function Definition: bar( ( global void)
240:21    Function Parameters:
250:25  Function Definition: unreachableReturn( ( global float)
260:25    Function Parameters:
270:27    Sequence
280:27      Function Call: bar( ( global void)
290:28      Test condition and select ( temp void)
300:28        Condition
310:28        Compare Less Than ( temp bool)
320:28          'd' ( uniform float)
330:28          Constant:
340:28            4.200000
350:28        true case
360:29        Branch: Return with expression
370:29          Constant:
380:29            1.200000
390:28        false case
400:31        Branch: Return with expression
410:31          Constant:
420:31            4.500000
430:34  Function Definition: foo(vf4; ( global float)
440:34    Function Parameters:
450:34      'bar' ( in 4-component vector of float)
460:36    Sequence
470:36      Branch: Return with expression
480:36        add ( temp float)
490:36          direct index ( temp float)
500:36            'bar' ( in 4-component vector of float)
510:36            Constant:
520:36              0 (const int)
530:36          direct index ( temp float)
540:36            'bar' ( in 4-component vector of float)
550:36            Constant:
560:36              1 (const int)
570:?   Linker Objects
580:?     'bigColor' ( uniform 4-component vector of float)
590:?     'BaseColor' ( smooth in 4-component vector of float)
600:?     'd' ( uniform float)
61
62
63Linked fragment stage:
64
65
66Shader version: 110
670:? Sequence
680:11  Function Definition: main( ( global void)
690:11    Function Parameters:
700:13    Sequence
710:13      Sequence
720:13        move second child to first child ( temp 4-component vector of float)
730:13          'color' ( temp 4-component vector of float)
740:13          Construct vec4 ( temp 4-component vector of float)
750:13            Function Call: foo(vf4; ( global float)
760:13              'BaseColor' ( smooth in 4-component vector of float)
770:15      Function Call: bar( ( global void)
780:16      Sequence
790:16        move second child to first child ( temp float)
800:16          'f' ( temp float)
810:16          Function Call: unreachableReturn( ( global float)
820:18      move second child to first child ( temp 4-component vector of float)
830:18        'gl_FragColor' ( fragColor 4-component vector of float FragColor)
840:18        vector-scale ( temp 4-component vector of float)
850:18          'color' ( temp 4-component vector of float)
860:18          'f' ( temp float)
870:21  Function Definition: bar( ( global void)
880:21    Function Parameters:
890:25  Function Definition: unreachableReturn( ( global float)
900:25    Function Parameters:
910:27    Sequence
920:27      Function Call: bar( ( global void)
930:28      Test condition and select ( temp void)
940:28        Condition
950:28        Compare Less Than ( temp bool)
960:28          'd' ( uniform float)
970:28          Constant:
980:28            4.200000
990:28        true case
1000:29        Branch: Return with expression
1010:29          Constant:
1020:29            1.200000
1030:28        false case
1040:31        Branch: Return with expression
1050:31          Constant:
1060:31            4.500000
1070:34  Function Definition: foo(vf4; ( global float)
1080:34    Function Parameters:
1090:34      'bar' ( in 4-component vector of float)
1100:36    Sequence
1110:36      Branch: Return with expression
1120:36        add ( temp float)
1130:36          direct index ( temp float)
1140:36            'bar' ( in 4-component vector of float)
1150:36            Constant:
1160:36              0 (const int)
1170:36          direct index ( temp float)
1180:36            'bar' ( in 4-component vector of float)
1190:36            Constant:
1200:36              1 (const int)
1210:?   Linker Objects
1220:?     'bigColor' ( uniform 4-component vector of float)
1230:?     'BaseColor' ( smooth in 4-component vector of float)
1240:?     'd' ( uniform float)
125
126