1functionSemantics.frag 2ERROR: 0:74: 'return' : cannot convert return value to function return type 3WARNING: 0:74: 'return' : type conversion on return values was not explicitly allowed until version 420 4ERROR: 1 compilation errors. No code generated. 5 6 7Shader version: 400 8ERROR: node is still EOpNull! 90:5 Function Definition: foo(i1;i1;i1;i1;i1;i1; ( global int) 100:5 Function Parameters: 110:5 'a' ( in int) 120:5 'b' ( const (read only) int) 130:5 'c' ( in int) 140:5 'd' ( const (read only) int) 150:5 'e' ( out int) 160:5 'f' ( inout int) 170:7 Sequence 180:7 Sequence 190:7 move second child to first child ( temp int) 200:7 'sum' ( temp int) 210:7 add ( temp int) 220:7 add ( temp int) 230:7 add ( temp int) 240:7 add ( temp int) 250:7 'a' ( in int) 260:7 'b' ( const (read only) int) 270:7 'c' ( in int) 280:7 'd' ( const (read only) int) 290:7 'f' ( inout int) 300:10 multiply second child into first child ( temp int) 310:10 'a' ( in int) 320:10 Constant: 330:10 64 (const int) 340:12 multiply second child into first child ( temp int) 350:12 'c' ( in int) 360:12 Constant: 370:12 64 (const int) 380:14 move second child to first child ( temp int) 390:14 'e' ( out int) 400:14 Constant: 410:14 1024 (const int) 420:15 multiply second child into first child ( temp int) 430:15 'f' ( inout int) 440:15 Constant: 450:15 64 (const int) 460:17 add second child into first child ( temp int) 470:17 'sum' ( temp int) 480:17 add ( temp int) 490:17 add ( temp int) 500:17 add ( temp int) 510:17 add ( temp int) 520:17 add ( temp int) 530:17 'a' ( in int) 540:17 component-wise multiply ( temp int) 550:17 Constant: 560:17 64 (const int) 570:17 'b' ( const (read only) int) 580:17 'c' ( in int) 590:17 component-wise multiply ( temp int) 600:17 Constant: 610:17 64 (const int) 620:17 'd' ( const (read only) int) 630:17 'e' ( out int) 640:17 'f' ( inout int) 650:20 Branch: Return with expression 660:20 'sum' ( temp int) 670:23 Function Definition: foo2(f1;vf3;i1; ( global int) 680:23 Function Parameters: 690:23 'a' ( in float) 700:23 'b' ( in 3-component vector of float) 710:23 'r' ( out int) 720:25 Sequence 730:25 move second child to first child ( temp int) 740:25 'r' ( out int) 750:25 Convert float to int ( temp int) 760:25 component-wise multiply ( temp float) 770:25 Constant: 780:25 3.000000 790:25 'a' ( in float) 800:26 Branch: Return with expression 810:26 Convert float to int ( temp int) 820:26 component-wise multiply ( temp float) 830:26 Constant: 840:26 5.000000 850:26 direct index ( temp float) 860:26 'b' ( in 3-component vector of float) 870:26 Constant: 880:26 1 (const int) 890:29 Function Definition: foo3( ( global int) 900:29 Function Parameters: 910:31 Sequence 920:31 Test condition and select ( temp void) 930:31 Condition 940:31 Compare Greater Than ( temp bool) 950:31 'u' ( uniform float) 960:31 Constant: 970:31 3.200000 980:31 true case 990:32 Sequence 1000:32 Branch: Kill 1010:33 Branch: Return with expression 1020:33 Constant: 1030:33 1000000 (const int) 1040:36 Branch: Return with expression 1050:36 Constant: 1060:36 2000000 (const int) 1070:39 Function Definition: main( ( global void) 1080:39 Function Parameters: 1090:? Sequence 1100:42 Sequence 1110:42 move second child to first child ( temp int) 1120:42 't' ( temp int) 1130:42 Constant: 1140:42 2 (const int) 1150:46 move second child to first child ( temp int) 1160:46 direct index ( temp int) 1170:46 t: direct index for structure ( temp 4-component vector of int) 1180:46 'f' ( temp structure{ temp 4-component vector of int t}) 1190:46 Constant: 1200:46 0 (const int) 1210:46 Constant: 1220:46 1 (const int) 1230:46 Constant: 1240:46 32 (const int) 1250:49 Sequence 1260:49 move second child to first child ( temp int) 1270:49 'color' ( temp int) 1280:49 Function Call: foo(i1;i1;i1;i1;i1;i1; ( global int) 1290:49 Constant: 1300:49 1 (const int) 1310:49 Constant: 1320:49 2 (const int) 1330:49 add ( temp int) 1340:49 't' ( temp int) 1350:49 't' ( temp int) 1360:49 Constant: 1370:49 8 (const int) 1380:49 'e' ( temp int) 1390:49 direct index ( temp int) 1400:49 t: direct index for structure ( temp 4-component vector of int) 1410:49 'f' ( temp structure{ temp 4-component vector of int t}) 1420:49 Constant: 1430:49 0 (const int) 1440:49 Constant: 1450:49 1 (const int) 1460:51 add second child into first child ( temp int) 1470:51 'color' ( temp int) 1480:51 component-wise multiply ( temp int) 1490:51 Constant: 1500:51 128 (const int) 1510:51 add ( temp int) 1520:51 'e' ( temp int) 1530:51 direct index ( temp int) 1540:51 t: direct index for structure ( temp 4-component vector of int) 1550:51 'f' ( temp structure{ temp 4-component vector of int t}) 1560:51 Constant: 1570:51 0 (const int) 1580:51 Constant: 1590:51 1 (const int) 1600:57 move second child to first child ( temp float) 1610:57 'ret' ( temp float) 1620:57 Convert int to float ( temp float) 1630:57 Comma ( global int) 1640:57 move second child to first child ( temp int) 1650:57 'tempReturn' ( global int) 1660:57 Function Call: foo2(f1;vf3;i1; ( global int) 1670:57 Constant: 1680:57 4.000000 1690:57 Constant: 1700:57 1.000000 1710:57 2.000000 1720:57 3.000000 1730:57 'tempArg' ( temp int) 1740:57 move second child to first child ( temp float) 1750:57 'arg' ( temp float) 1760:57 Convert int to float ( temp float) 1770:57 'tempArg' ( temp int) 1780:57 'tempReturn' ( global int) 1790:58 add second child into first child ( temp int) 1800:58 'color' ( temp int) 1810:58 Convert float to int ( temp int) 1820:58 add ( temp float) 1830:58 'ret' ( temp float) 1840:58 'arg' ( temp float) 1850:60 add second child into first child ( temp int) 1860:60 'color' ( temp int) 1870:60 Function Call: foo3( ( global int) 1880:62 move second child to first child ( temp 4-component vector of float) 1890:62 'gl_FragColor' ( fragColor 4-component vector of float FragColor) 1900:62 Construct vec4 ( temp 4-component vector of float) 1910:62 Convert int to float ( temp float) 1920:62 'color' ( temp int) 1930:66 Function Definition: aggCall( ( global void) 1940:66 Function Parameters: 1950:? Sequence 1960:69 Function Call: m(vf2; ( global 3-component vector of float) 1970:69 Convert int to float ( temp 2-component vector of float) 1980:69 Construct ivec2 ( temp 2-component vector of int) 1990:69 Convert float to int ( temp int) 2000:69 'F' ( temp float) 2010:72 Function Definition: badConv( ( global 4-component vector of float) 2020:72 Function Parameters: 2030:74 Sequence 2040:74 Branch: Return with expression 2050:74 'u' ( uniform float) 2060:? Linker Objects 2070:? 'u' ( uniform float) 208 209 210Linked fragment stage: 211 212 213Shader version: 400 214ERROR: node is still EOpNull! 2150:5 Function Definition: foo(i1;i1;i1;i1;i1;i1; ( global int) 2160:5 Function Parameters: 2170:5 'a' ( in int) 2180:5 'b' ( const (read only) int) 2190:5 'c' ( in int) 2200:5 'd' ( const (read only) int) 2210:5 'e' ( out int) 2220:5 'f' ( inout int) 2230:7 Sequence 2240:7 Sequence 2250:7 move second child to first child ( temp int) 2260:7 'sum' ( temp int) 2270:7 add ( temp int) 2280:7 add ( temp int) 2290:7 add ( temp int) 2300:7 add ( temp int) 2310:7 'a' ( in int) 2320:7 'b' ( const (read only) int) 2330:7 'c' ( in int) 2340:7 'd' ( const (read only) int) 2350:7 'f' ( inout int) 2360:10 multiply second child into first child ( temp int) 2370:10 'a' ( in int) 2380:10 Constant: 2390:10 64 (const int) 2400:12 multiply second child into first child ( temp int) 2410:12 'c' ( in int) 2420:12 Constant: 2430:12 64 (const int) 2440:14 move second child to first child ( temp int) 2450:14 'e' ( out int) 2460:14 Constant: 2470:14 1024 (const int) 2480:15 multiply second child into first child ( temp int) 2490:15 'f' ( inout int) 2500:15 Constant: 2510:15 64 (const int) 2520:17 add second child into first child ( temp int) 2530:17 'sum' ( temp int) 2540:17 add ( temp int) 2550:17 add ( temp int) 2560:17 add ( temp int) 2570:17 add ( temp int) 2580:17 add ( temp int) 2590:17 'a' ( in int) 2600:17 component-wise multiply ( temp int) 2610:17 Constant: 2620:17 64 (const int) 2630:17 'b' ( const (read only) int) 2640:17 'c' ( in int) 2650:17 component-wise multiply ( temp int) 2660:17 Constant: 2670:17 64 (const int) 2680:17 'd' ( const (read only) int) 2690:17 'e' ( out int) 2700:17 'f' ( inout int) 2710:20 Branch: Return with expression 2720:20 'sum' ( temp int) 2730:23 Function Definition: foo2(f1;vf3;i1; ( global int) 2740:23 Function Parameters: 2750:23 'a' ( in float) 2760:23 'b' ( in 3-component vector of float) 2770:23 'r' ( out int) 2780:25 Sequence 2790:25 move second child to first child ( temp int) 2800:25 'r' ( out int) 2810:25 Convert float to int ( temp int) 2820:25 component-wise multiply ( temp float) 2830:25 Constant: 2840:25 3.000000 2850:25 'a' ( in float) 2860:26 Branch: Return with expression 2870:26 Convert float to int ( temp int) 2880:26 component-wise multiply ( temp float) 2890:26 Constant: 2900:26 5.000000 2910:26 direct index ( temp float) 2920:26 'b' ( in 3-component vector of float) 2930:26 Constant: 2940:26 1 (const int) 2950:29 Function Definition: foo3( ( global int) 2960:29 Function Parameters: 2970:31 Sequence 2980:31 Test condition and select ( temp void) 2990:31 Condition 3000:31 Compare Greater Than ( temp bool) 3010:31 'u' ( uniform float) 3020:31 Constant: 3030:31 3.200000 3040:31 true case 3050:32 Sequence 3060:32 Branch: Kill 3070:33 Branch: Return with expression 3080:33 Constant: 3090:33 1000000 (const int) 3100:36 Branch: Return with expression 3110:36 Constant: 3120:36 2000000 (const int) 3130:39 Function Definition: main( ( global void) 3140:39 Function Parameters: 3150:? Sequence 3160:42 Sequence 3170:42 move second child to first child ( temp int) 3180:42 't' ( temp int) 3190:42 Constant: 3200:42 2 (const int) 3210:46 move second child to first child ( temp int) 3220:46 direct index ( temp int) 3230:46 t: direct index for structure ( temp 4-component vector of int) 3240:46 'f' ( temp structure{ temp 4-component vector of int t}) 3250:46 Constant: 3260:46 0 (const int) 3270:46 Constant: 3280:46 1 (const int) 3290:46 Constant: 3300:46 32 (const int) 3310:49 Sequence 3320:49 move second child to first child ( temp int) 3330:49 'color' ( temp int) 3340:49 Function Call: foo(i1;i1;i1;i1;i1;i1; ( global int) 3350:49 Constant: 3360:49 1 (const int) 3370:49 Constant: 3380:49 2 (const int) 3390:49 add ( temp int) 3400:49 't' ( temp int) 3410:49 't' ( temp int) 3420:49 Constant: 3430:49 8 (const int) 3440:49 'e' ( temp int) 3450:49 direct index ( temp int) 3460:49 t: direct index for structure ( temp 4-component vector of int) 3470:49 'f' ( temp structure{ temp 4-component vector of int t}) 3480:49 Constant: 3490:49 0 (const int) 3500:49 Constant: 3510:49 1 (const int) 3520:51 add second child into first child ( temp int) 3530:51 'color' ( temp int) 3540:51 component-wise multiply ( temp int) 3550:51 Constant: 3560:51 128 (const int) 3570:51 add ( temp int) 3580:51 'e' ( temp int) 3590:51 direct index ( temp int) 3600:51 t: direct index for structure ( temp 4-component vector of int) 3610:51 'f' ( temp structure{ temp 4-component vector of int t}) 3620:51 Constant: 3630:51 0 (const int) 3640:51 Constant: 3650:51 1 (const int) 3660:57 move second child to first child ( temp float) 3670:57 'ret' ( temp float) 3680:57 Convert int to float ( temp float) 3690:57 Comma ( global int) 3700:57 move second child to first child ( temp int) 3710:57 'tempReturn' ( global int) 3720:57 Function Call: foo2(f1;vf3;i1; ( global int) 3730:57 Constant: 3740:57 4.000000 3750:57 Constant: 3760:57 1.000000 3770:57 2.000000 3780:57 3.000000 3790:57 'tempArg' ( temp int) 3800:57 move second child to first child ( temp float) 3810:57 'arg' ( temp float) 3820:57 Convert int to float ( temp float) 3830:57 'tempArg' ( temp int) 3840:57 'tempReturn' ( global int) 3850:58 add second child into first child ( temp int) 3860:58 'color' ( temp int) 3870:58 Convert float to int ( temp int) 3880:58 add ( temp float) 3890:58 'ret' ( temp float) 3900:58 'arg' ( temp float) 3910:60 add second child into first child ( temp int) 3920:60 'color' ( temp int) 3930:60 Function Call: foo3( ( global int) 3940:62 move second child to first child ( temp 4-component vector of float) 3950:62 'gl_FragColor' ( fragColor 4-component vector of float FragColor) 3960:62 Construct vec4 ( temp 4-component vector of float) 3970:62 Convert int to float ( temp float) 3980:62 'color' ( temp int) 3990:? Linker Objects 4000:? 'u' ( uniform float) 401 402