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