• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1vk.relaxed.errorcheck.vert
2Shader version: 460
30:? Sequence
40:9  Function Definition: foo( ( global highp 4-component vector of float)
50:9    Function Parameters:
60:10    Sequence
70:10      Branch: Return with expression
80:10        vector swizzle ( temp highp 4-component vector of float)
90:10          a: direct index for structure ( uniform highp 2-component vector of float)
100:10            'anon@0' (layout( column_major std140) uniform block{ uniform highp 2-component vector of float a})
110:10            Constant:
120:10              0 (const uint)
130:10          Sequence
140:10            Constant:
150:10              0 (const int)
160:10            Constant:
170:10              1 (const int)
180:10            Constant:
190:10              0 (const int)
200:10            Constant:
210:10              1 (const int)
220:13  Function Definition: main( ( global void)
230:13    Function Parameters:
240:14    Sequence
250:14      move second child to first child ( temp highp 4-component vector of float)
260:14        'io' (layout( location=0) smooth out highp 4-component vector of float)
270:14        Function Call: foo( ( global highp 4-component vector of float)
280:?   Linker Objects
290:?     'io' (layout( location=0) smooth out highp 4-component vector of float)
300:?     'anon@0' (layout( column_major std140) uniform block{ uniform highp 2-component vector of float a})
310:?     'gl_VertexIndex' ( in int VertexIndex)
320:?     'gl_InstanceIndex' ( in int InstanceIndex)
33
34vk.relaxed.errorcheck.frag
35ERROR: 0:11: 'test' :  Redeclaration: already declared as " uniform highp float"
36ERROR: 1 compilation errors.  No code generated.
37
38
39Shader version: 460
40gl_FragCoord origin is upper left
41ERROR: node is still EOpNull!
420:13  Function Definition: foo( ( global highp 4-component vector of float)
430:13    Function Parameters:
440:14    Sequence
450:14      Branch: Return with expression
460:14        add ( temp highp 4-component vector of float)
470:14          a: direct index for structure ( uniform highp 4-component vector of float)
480:14            'anon@0' (layout( column_major std140) uniform block{ uniform highp 4-component vector of float a,  uniform highp float test})
490:14            Constant:
500:14              0 (const uint)
510:14          Construct vec4 ( temp highp 4-component vector of float)
520:14            test: direct index for structure ( uniform highp float)
530:14              'anon@0' (layout( column_major std140) uniform block{ uniform highp 4-component vector of float a,  uniform highp float test})
540:14              Constant:
550:14                1 (const uint)
560:17  Function Definition: main( ( global void)
570:17    Function Parameters:
580:18    Sequence
590:18      move second child to first child ( temp highp 4-component vector of float)
600:18        'o' ( out highp 4-component vector of float)
610:18        add ( temp highp 4-component vector of float)
620:18          'io' (layout( location=0) smooth in highp 4-component vector of float)
630:18          Function Call: foo( ( global highp 4-component vector of float)
640:?   Linker Objects
650:?     'io' (layout( location=0) smooth in highp 4-component vector of float)
660:?     'o' ( out highp 4-component vector of float)
670:?     'anon@0' (layout( column_major std140) uniform block{ uniform highp 4-component vector of float a,  uniform highp float test})
68
69
70Linked vertex stage:
71
72
73Linked fragment stage:
74
75ERROR: Linking unknown stage stage: Types must match:
76    a: " uniform highp 2-component vector of float" versus " uniform highp 4-component vector of float"
77
78Shader version: 460
790:? Sequence
800:9  Function Definition: foo( ( global highp 4-component vector of float)
810:9    Function Parameters:
820:10    Sequence
830:10      Branch: Return with expression
840:10        vector swizzle ( temp highp 4-component vector of float)
850:10          a: direct index for structure ( uniform highp 2-component vector of float)
860:10            'anon@0' (layout( column_major std140) uniform block{ uniform highp 2-component vector of float a})
870:10            Constant:
880:10              0 (const uint)
890:10          Sequence
900:10            Constant:
910:10              0 (const int)
920:10            Constant:
930:10              1 (const int)
940:10            Constant:
950:10              0 (const int)
960:10            Constant:
970:10              1 (const int)
980:13  Function Definition: main( ( global void)
990:13    Function Parameters:
1000:14    Sequence
1010:14      move second child to first child ( temp highp 4-component vector of float)
1020:14        'io' (layout( location=0) smooth out highp 4-component vector of float)
1030:14        Function Call: foo( ( global highp 4-component vector of float)
1040:?   Linker Objects
1050:?     'io' (layout( location=0) smooth out highp 4-component vector of float)
1060:?     'anon@0' (layout( column_major std140) uniform block{ uniform highp 2-component vector of float a})
1070:?     'gl_VertexIndex' ( in int VertexIndex)
1080:?     'gl_InstanceIndex' ( in int InstanceIndex)
109Shader version: 460
110gl_FragCoord origin is upper left
111ERROR: node is still EOpNull!
1120:13  Function Definition: foo( ( global highp 4-component vector of float)
1130:13    Function Parameters:
1140:14    Sequence
1150:14      Branch: Return with expression
1160:14        add ( temp highp 4-component vector of float)
1170:14          a: direct index for structure ( uniform highp 4-component vector of float)
1180:14            'anon@0' (layout( column_major std140) uniform block{ uniform highp 4-component vector of float a,  uniform highp float test})
1190:14            Constant:
1200:14              0 (const uint)
1210:14          Construct vec4 ( temp highp 4-component vector of float)
1220:14            test: direct index for structure ( uniform highp float)
1230:14              'anon@0' (layout( column_major std140) uniform block{ uniform highp 4-component vector of float a,  uniform highp float test})
1240:14              Constant:
1250:14                1 (const uint)
1260:17  Function Definition: main( ( global void)
1270:17    Function Parameters:
1280:18    Sequence
1290:18      move second child to first child ( temp highp 4-component vector of float)
1300:18        'o' ( out highp 4-component vector of float)
1310:18        add ( temp highp 4-component vector of float)
1320:18          'io' (layout( location=0) smooth in highp 4-component vector of float)
1330:18          Function Call: foo( ( global highp 4-component vector of float)
1340:?   Linker Objects
1350:?     'io' (layout( location=0) smooth in highp 4-component vector of float)
1360:?     'o' ( out highp 4-component vector of float)
1370:?     'anon@0' (layout( column_major std140) uniform block{ uniform highp 4-component vector of float a,  uniform highp float test})
138
139Validation failed
140SPIR-V is not generated for failed compile or link
141