1hlsl.function.frag
2ERROR: 0:24: 'fun1' : unknown variable
3ERROR: 0:24: 'return' : type does not match, or is not convertible to, the function's return type
4ERROR: 2 compilation errors.  No code generated.
5
6
7Shader version: 500
8gl_FragCoord origin is upper left
9ERROR: node is still EOpNull!
100:2  Function Definition: fun0( ( temp 4-component vector of float)
110:2    Function Parameters:
120:?     Sequence
130:3      Branch: Return with expression
140:3        Constant:
150:3          1.000000
160:3          1.000000
170:3          1.000000
180:3          1.000000
190:7  Function Definition: fun2(vf4; ( temp uint)
200:7    Function Parameters:
210:7      'col' ( in 4-component vector of float)
220:?     Sequence
230:8      Branch: Return with expression
240:8        Constant:
250:8          7 (const uint)
260:12  Function Definition: fun4(u1;u1; ( temp 4-component vector of float)
270:12    Function Parameters:
280:12      'id1' ( in uint)
290:12      'id2' ( uniform uint)
300:?     Sequence
310:13      Branch: Return with expression
320:13        Construct vec4 ( temp 4-component vector of float)
330:13          Convert uint to float ( temp float)
340:13            component-wise multiply ( temp uint)
350:13              'id1' ( in uint)
360:13              'id2' ( uniform uint)
370:17  Function Definition: fun1(i1; ( temp 4-component vector of float)
380:17    Function Parameters:
390:17      'index' ( in int)
400:?     Sequence
410:18      Sequence
420:18        move second child to first child ( temp uint)
430:18          'entityId' ( temp uint)
440:18          Function Call: fun2(vf4; ( temp uint)
450:18            Function Call: fun0( ( temp 4-component vector of float)
460:19      Branch: Return with expression
470:19        Function Call: fun4(u1;u1; ( temp 4-component vector of float)
480:19          'entityId' ( temp uint)
490:19          'entityId' ( temp uint)
500:23  Function Definition: @main( ( temp int)
510:23    Function Parameters:
520:23  Function Definition: main( ( temp void)
530:23    Function Parameters:
540:?     Sequence
550:23      move second child to first child ( temp int)
560:?         '@entryPointOutput' (layout( location=0) out int)
570:23        Function Call: @main( ( temp int)
580:?   Linker Objects
590:?     '@entryPointOutput' (layout( location=0) out int)
60
61
62Linked fragment stage:
63
64
65Shader version: 500
66gl_FragCoord origin is upper left
67ERROR: node is still EOpNull!
680:2  Function Definition: fun0( ( temp 4-component vector of float)
690:2    Function Parameters:
700:?     Sequence
710:3      Branch: Return with expression
720:3        Constant:
730:3          1.000000
740:3          1.000000
750:3          1.000000
760:3          1.000000
770:7  Function Definition: fun2(vf4; ( temp uint)
780:7    Function Parameters:
790:7      'col' ( in 4-component vector of float)
800:?     Sequence
810:8      Branch: Return with expression
820:8        Constant:
830:8          7 (const uint)
840:12  Function Definition: fun4(u1;u1; ( temp 4-component vector of float)
850:12    Function Parameters:
860:12      'id1' ( in uint)
870:12      'id2' ( uniform uint)
880:?     Sequence
890:13      Branch: Return with expression
900:13        Construct vec4 ( temp 4-component vector of float)
910:13          Convert uint to float ( temp float)
920:13            component-wise multiply ( temp uint)
930:13              'id1' ( in uint)
940:13              'id2' ( uniform uint)
950:17  Function Definition: fun1(i1; ( temp 4-component vector of float)
960:17    Function Parameters:
970:17      'index' ( in int)
980:?     Sequence
990:18      Sequence
1000:18        move second child to first child ( temp uint)
1010:18          'entityId' ( temp uint)
1020:18          Function Call: fun2(vf4; ( temp uint)
1030:18            Function Call: fun0( ( temp 4-component vector of float)
1040:19      Branch: Return with expression
1050:19        Function Call: fun4(u1;u1; ( temp 4-component vector of float)
1060:19          'entityId' ( temp uint)
1070:19          'entityId' ( temp uint)
1080:23  Function Definition: @main( ( temp int)
1090:23    Function Parameters:
1100:23  Function Definition: main( ( temp void)
1110:23    Function Parameters:
1120:?     Sequence
1130:23      move second child to first child ( temp int)
1140:?         '@entryPointOutput' (layout( location=0) out int)
1150:23        Function Call: @main( ( temp int)
1160:?   Linker Objects
1170:?     '@entryPointOutput' (layout( location=0) out int)
118
119SPIR-V is not generated for failed compile or link
120