yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Valentin SarthouFix incorrect "Contradictory layout" link errors (#3920)4056002e

main
2.2 KiB67 linesraw
1link.multiUnitLayout.2.frag
2Shader version: 450
3using depth_less
40:? Sequence
50:8  Function Definition: outputColor(vf4; ( global void)
60:8    Function Parameters: 
70:8      'color' ( in 4-component vector of float)
80:10    Sequence
90:10      move second child to first child ( temp 4-component vector of float)
100:10        'FragColor' (layout( location=0) out 4-component vector of float)
110:10        'color' ( in 4-component vector of float)
120:?   Linker Objects
130:?     'gl_FragDepth' ( gl_FragDepth float FragDepth)
140:?     'FragColor' (layout( location=0) out 4-component vector of float)
15
16link.multiUnitLayout.0.frag
17Shader version: 450
18using depth_greater
190:? Sequence
200:7  Function Definition: main( ( global void)
210:7    Function Parameters: 
220:9    Sequence
230:9      Function Call: outputColor(vf4; ( global void)
240:9        Constant:
250:9          1.000000
260:9          0.000000
270:9          0.000000
280:9          1.000000
290:10      move second child to first child ( temp float)
300:10        'gl_FragDepth' ( gl_FragDepth float FragDepth)
310:10        Constant:
320:10          0.500000
330:?   Linker Objects
340:?     'gl_FragDepth' ( gl_FragDepth float FragDepth)
35
36
37Linked fragment stage:
38
39ERROR: Linking fragment stage: Contradictory depth layouts
40
41Shader version: 450
42using depth_less
430:? Sequence
440:8  Function Definition: outputColor(vf4; ( global void)
450:8    Function Parameters: 
460:8      'color' ( in 4-component vector of float)
470:10    Sequence
480:10      move second child to first child ( temp 4-component vector of float)
490:10        'FragColor' (layout( location=0) out 4-component vector of float)
500:10        'color' ( in 4-component vector of float)
510:7  Function Definition: main( ( global void)
520:7    Function Parameters: 
530:9    Sequence
540:9      Function Call: outputColor(vf4; ( global void)
550:9        Constant:
560:9          1.000000
570:9          0.000000
580:9          0.000000
590:9          1.000000
600:10      move second child to first child ( temp float)
610:10        'gl_FragDepth' ( gl_FragDepth float FragDepth)
620:10        Constant:
630:10          0.500000
640:?   Linker Objects
650:?     'gl_FragDepth' ( gl_FragDepth float FragDepth)
660:?     'FragColor' (layout( location=0) out 4-component vector of float)
67