• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1coord_conventions.frag
2Shader version: 140
3Requested GL_ARB_explicit_attrib_location
4Requested GL_ARB_fragment_coord_conventions
5gl_FragCoord pixel center is integer
6gl_FragCoord origin is upper left
70:? Sequence
80:17  Function Definition: main( ( global void)
90:17    Function Parameters:
100:19    Sequence
110:19      move second child to first child ( temp 4-component vector of float)
120:19        'myColor' (layout( location=0) out 4-component vector of float)
130:19        Constant:
140:19          0.200000
150:19          0.200000
160:19          0.200000
170:19          0.200000
180:20      Test condition and select ( temp void)
190:20        Condition
200:20        Compare Greater Than or Equal ( temp bool)
210:20          direct index ( temp float)
220:20            'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
230:20            Constant:
240:20              1 (const int)
250:20          Constant:
260:20            10.000000
270:20        true case
280:21        Sequence
290:21          move second child to first child ( temp float)
300:21            direct index ( temp float)
310:21              'myColor' (layout( location=0) out 4-component vector of float)
320:21              Constant:
330:21                2 (const int)
340:21            Constant:
350:21              0.800000
360:23      Test condition and select ( temp void)
370:23        Condition
380:23        Compare Equal ( temp bool)
390:23          direct index ( temp float)
400:23            'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
410:23            Constant:
420:23              1 (const int)
430:23          trunc ( global float)
440:23            direct index ( temp float)
450:23              'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
460:23              Constant:
470:23                1 (const int)
480:23        true case
490:24        Sequence
500:24          move second child to first child ( temp float)
510:24            direct index ( temp float)
520:24              'myColor' (layout( location=0) out 4-component vector of float)
530:24              Constant:
540:24                1 (const int)
550:24            Constant:
560:24              0.800000
570:26      Test condition and select ( temp void)
580:26        Condition
590:26        Compare Equal ( temp bool)
600:26          direct index ( temp float)
610:26            'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
620:26            Constant:
630:26              0 (const int)
640:26          trunc ( global float)
650:26            direct index ( temp float)
660:26              'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
670:26              Constant:
680:26                0 (const int)
690:26        true case
700:27        Sequence
710:27          move second child to first child ( temp float)
720:27            direct index ( temp float)
730:27              'myColor' (layout( location=0) out 4-component vector of float)
740:27              Constant:
750:27                0 (const int)
760:27            Constant:
770:27              0.800000
780:30      Sequence
790:30        move second child to first child ( temp 4-component vector of float)
800:30          'diff' ( temp 4-component vector of float)
810:30          subtract ( temp 4-component vector of float)
820:30            'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
830:30            'i' ( smooth in 4-component vector of float)
840:31      Test condition and select ( temp void)
850:31        Condition
860:31        Compare Greater Than ( temp bool)
870:31          Absolute value ( global float)
880:31            direct index ( temp float)
890:31              'diff' ( temp 4-component vector of float)
900:31              Constant:
910:31                2 (const int)
920:31          Constant:
930:31            0.001000
940:31        true case
950:32        move second child to first child ( temp float)
960:32          direct index ( temp float)
970:32            'myColor' (layout( location=0) out 4-component vector of float)
980:32            Constant:
990:32              2 (const int)
1000:32          Constant:
1010:32            0.500000
1020:33      Test condition and select ( temp void)
1030:33        Condition
1040:33        Compare Greater Than ( temp bool)
1050:33          Absolute value ( global float)
1060:33            direct index ( temp float)
1070:33              'diff' ( temp 4-component vector of float)
1080:33              Constant:
1090:33                3 (const int)
1100:33          Constant:
1110:33            0.001000
1120:33        true case
1130:34        move second child to first child ( temp float)
1140:34          direct index ( temp float)
1150:34            'myColor' (layout( location=0) out 4-component vector of float)
1160:34            Constant:
1170:34              3 (const int)
1180:34          Constant:
1190:34            0.500000
1200:?   Linker Objects
1210:?     'i' ( smooth in 4-component vector of float)
1220:?     'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
1230:?     'myColor' (layout( location=0) out 4-component vector of float)
1240:?     'eps' ( const float)
1250:?       0.001000
126
127
128Linked fragment stage:
129
130
131Shader version: 140
132Requested GL_ARB_explicit_attrib_location
133Requested GL_ARB_fragment_coord_conventions
134gl_FragCoord pixel center is integer
135gl_FragCoord origin is upper left
1360:? Sequence
1370:17  Function Definition: main( ( global void)
1380:17    Function Parameters:
1390:19    Sequence
1400:19      move second child to first child ( temp 4-component vector of float)
1410:19        'myColor' (layout( location=0) out 4-component vector of float)
1420:19        Constant:
1430:19          0.200000
1440:19          0.200000
1450:19          0.200000
1460:19          0.200000
1470:20      Test condition and select ( temp void)
1480:20        Condition
1490:20        Compare Greater Than or Equal ( temp bool)
1500:20          direct index ( temp float)
1510:20            'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
1520:20            Constant:
1530:20              1 (const int)
1540:20          Constant:
1550:20            10.000000
1560:20        true case
1570:21        Sequence
1580:21          move second child to first child ( temp float)
1590:21            direct index ( temp float)
1600:21              'myColor' (layout( location=0) out 4-component vector of float)
1610:21              Constant:
1620:21                2 (const int)
1630:21            Constant:
1640:21              0.800000
1650:23      Test condition and select ( temp void)
1660:23        Condition
1670:23        Compare Equal ( temp bool)
1680:23          direct index ( temp float)
1690:23            'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
1700:23            Constant:
1710:23              1 (const int)
1720:23          trunc ( global float)
1730:23            direct index ( temp float)
1740:23              'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
1750:23              Constant:
1760:23                1 (const int)
1770:23        true case
1780:24        Sequence
1790:24          move second child to first child ( temp float)
1800:24            direct index ( temp float)
1810:24              'myColor' (layout( location=0) out 4-component vector of float)
1820:24              Constant:
1830:24                1 (const int)
1840:24            Constant:
1850:24              0.800000
1860:26      Test condition and select ( temp void)
1870:26        Condition
1880:26        Compare Equal ( temp bool)
1890:26          direct index ( temp float)
1900:26            'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
1910:26            Constant:
1920:26              0 (const int)
1930:26          trunc ( global float)
1940:26            direct index ( temp float)
1950:26              'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
1960:26              Constant:
1970:26                0 (const int)
1980:26        true case
1990:27        Sequence
2000:27          move second child to first child ( temp float)
2010:27            direct index ( temp float)
2020:27              'myColor' (layout( location=0) out 4-component vector of float)
2030:27              Constant:
2040:27                0 (const int)
2050:27            Constant:
2060:27              0.800000
2070:30      Sequence
2080:30        move second child to first child ( temp 4-component vector of float)
2090:30          'diff' ( temp 4-component vector of float)
2100:30          subtract ( temp 4-component vector of float)
2110:30            'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
2120:30            'i' ( smooth in 4-component vector of float)
2130:31      Test condition and select ( temp void)
2140:31        Condition
2150:31        Compare Greater Than ( temp bool)
2160:31          Absolute value ( global float)
2170:31            direct index ( temp float)
2180:31              'diff' ( temp 4-component vector of float)
2190:31              Constant:
2200:31                2 (const int)
2210:31          Constant:
2220:31            0.001000
2230:31        true case
2240:32        move second child to first child ( temp float)
2250:32          direct index ( temp float)
2260:32            'myColor' (layout( location=0) out 4-component vector of float)
2270:32            Constant:
2280:32              2 (const int)
2290:32          Constant:
2300:32            0.500000
2310:33      Test condition and select ( temp void)
2320:33        Condition
2330:33        Compare Greater Than ( temp bool)
2340:33          Absolute value ( global float)
2350:33            direct index ( temp float)
2360:33              'diff' ( temp 4-component vector of float)
2370:33              Constant:
2380:33                3 (const int)
2390:33          Constant:
2400:33            0.001000
2410:33        true case
2420:34        move second child to first child ( temp float)
2430:34          direct index ( temp float)
2440:34            'myColor' (layout( location=0) out 4-component vector of float)
2450:34            Constant:
2460:34              3 (const int)
2470:34          Constant:
2480:34            0.500000
2490:?   Linker Objects
2500:?     'i' ( smooth in 4-component vector of float)
2510:?     'gl_FragCoord' ( gl_FragCoord 4-component vector of float FragCoord)
2520:?     'myColor' (layout( location=0) out 4-component vector of float)
2530:?     'eps' ( const float)
2540:?       0.001000
255
256