xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/baseResults/hlsl.function.frag.out (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1hlsl.function.frag
2ERROR: 0:29: 'fun1' : unknown variable
3ERROR: 0:29: '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 4-component vector of float)
200:7    Function Parameters:
210:7      'col' ( const (read only) 4-component vector of float)
220:?     Sequence
230:8      Branch: Return with expression
240:8        Construct vec4 ( temp 4-component vector of float)
250:8          Comma ( temp float)
260:8            Comma ( temp float)
270:8              Comma ( temp float)
280:8                Constant:
290:8                  1.000000
300:8                Constant:
310:8                  2.000000
320:8              Constant:
330:8                3.000000
340:8            Constant:
350:8              4.000000
360:12  Function Definition: fun3(vf4; ( temp uint)
370:12    Function Parameters:
380:12      'col' ( const (read only) 4-component vector of float)
390:?     Sequence
400:13      Branch: Return with expression
410:13        Constant:
420:13          7 (const uint)
430:17  Function Definition: fun4(u1;u1; ( temp 4-component vector of float)
440:17    Function Parameters:
450:17      'id1' ( in uint)
460:17      'id2' ( uniform uint)
470:?     Sequence
480:18      Branch: Return with expression
490:18        Construct vec4 ( temp 4-component vector of float)
500:18          Convert uint to float ( temp float)
510:18            component-wise multiply ( temp uint)
520:18              'id1' ( in uint)
530:18              'id2' ( uniform uint)
540:22  Function Definition: fun1(i1; ( temp 4-component vector of float)
550:22    Function Parameters:
560:22      'index' ( in int)
570:?     Sequence
580:23      Sequence
590:23        move second child to first child ( temp uint)
600:23          'entityId' ( temp uint)
610:23          Function Call: fun3(vf4; ( temp uint)
620:23            Function Call: fun2(vf4; ( temp 4-component vector of float)
630:23              Function Call: fun0( ( temp 4-component vector of float)
640:24      Branch: Return with expression
650:24        Function Call: fun4(u1;u1; ( temp 4-component vector of float)
660:24          'entityId' ( temp uint)
670:24          'entityId' ( temp uint)
680:28  Function Definition: @main( ( temp int)
690:28    Function Parameters:
700:28  Function Definition: main( ( temp void)
710:28    Function Parameters:
720:?     Sequence
730:28      move second child to first child ( temp int)
740:?         '@entryPointOutput' (layout( location=0) out int)
750:28        Function Call: @main( ( temp int)
760:?   Linker Objects
770:?     '@entryPointOutput' (layout( location=0) out int)
78
79
80Linked fragment stage:
81
82
83Shader version: 500
84gl_FragCoord origin is upper left
85ERROR: node is still EOpNull!
860:2  Function Definition: fun0( ( temp 4-component vector of float)
870:2    Function Parameters:
880:?     Sequence
890:3      Branch: Return with expression
900:3        Constant:
910:3          1.000000
920:3          1.000000
930:3          1.000000
940:3          1.000000
950:7  Function Definition: fun2(vf4; ( temp 4-component vector of float)
960:7    Function Parameters:
970:7      'col' ( const (read only) 4-component vector of float)
980:?     Sequence
990:8      Branch: Return with expression
1000:8        Construct vec4 ( temp 4-component vector of float)
1010:8          Comma ( temp float)
1020:8            Comma ( temp float)
1030:8              Comma ( temp float)
1040:8                Constant:
1050:8                  1.000000
1060:8                Constant:
1070:8                  2.000000
1080:8              Constant:
1090:8                3.000000
1100:8            Constant:
1110:8              4.000000
1120:12  Function Definition: fun3(vf4; ( temp uint)
1130:12    Function Parameters:
1140:12      'col' ( const (read only) 4-component vector of float)
1150:?     Sequence
1160:13      Branch: Return with expression
1170:13        Constant:
1180:13          7 (const uint)
1190:17  Function Definition: fun4(u1;u1; ( temp 4-component vector of float)
1200:17    Function Parameters:
1210:17      'id1' ( in uint)
1220:17      'id2' ( uniform uint)
1230:?     Sequence
1240:18      Branch: Return with expression
1250:18        Construct vec4 ( temp 4-component vector of float)
1260:18          Convert uint to float ( temp float)
1270:18            component-wise multiply ( temp uint)
1280:18              'id1' ( in uint)
1290:18              'id2' ( uniform uint)
1300:22  Function Definition: fun1(i1; ( temp 4-component vector of float)
1310:22    Function Parameters:
1320:22      'index' ( in int)
1330:?     Sequence
1340:23      Sequence
1350:23        move second child to first child ( temp uint)
1360:23          'entityId' ( temp uint)
1370:23          Function Call: fun3(vf4; ( temp uint)
1380:23            Function Call: fun2(vf4; ( temp 4-component vector of float)
1390:23              Function Call: fun0( ( temp 4-component vector of float)
1400:24      Branch: Return with expression
1410:24        Function Call: fun4(u1;u1; ( temp 4-component vector of float)
1420:24          'entityId' ( temp uint)
1430:24          'entityId' ( temp uint)
1440:28  Function Definition: @main( ( temp int)
1450:28    Function Parameters:
1460:28  Function Definition: main( ( temp void)
1470:28    Function Parameters:
1480:?     Sequence
1490:28      move second child to first child ( temp int)
1500:?         '@entryPointOutput' (layout( location=0) out int)
1510:28        Function Call: @main( ( temp int)
1520:?   Linker Objects
1530:?     '@entryPointOutput' (layout( location=0) out int)
154
155SPIR-V is not generated for failed compile or link
156