yum-mirror/glslang

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

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

main
2.1 KiB64 linesraw
1link.multiUnitLayout.0.frag
2Shader version: 450
3using depth_greater
40:? Sequence
50:7  Function Definition: main( ( global void)
60:7    Function Parameters: 
70:9    Sequence
80:9      Function Call: outputColor(vf4; ( global void)
90:9        Constant:
100:9          1.000000
110:9          0.000000
120:9          0.000000
130:9          1.000000
140:10      move second child to first child ( temp float)
150:10        'gl_FragDepth' ( gl_FragDepth float FragDepth)
160:10        Constant:
170:10          0.500000
180:?   Linker Objects
190:?     'gl_FragDepth' ( gl_FragDepth float FragDepth)
20
21link.multiUnitLayout.1.frag
22Shader version: 450
230:? Sequence
240:5  Function Definition: outputColor(vf4; ( global void)
250:5    Function Parameters: 
260:5      'color' ( in 4-component vector of float)
270:7    Sequence
280:7      move second child to first child ( temp 4-component vector of float)
290:7        'FragColor' (layout( location=0) out 4-component vector of float)
300:7        'color' ( in 4-component vector of float)
310:?   Linker Objects
320:?     'FragColor' (layout( location=0) out 4-component vector of float)
33
34
35Linked fragment stage:
36
37
38Shader version: 450
39using depth_greater
400:? Sequence
410:7  Function Definition: main( ( global void)
420:7    Function Parameters: 
430:9    Sequence
440:9      Function Call: outputColor(vf4; ( global void)
450:9        Constant:
460:9          1.000000
470:9          0.000000
480:9          0.000000
490:9          1.000000
500:10      move second child to first child ( temp float)
510:10        'gl_FragDepth' ( gl_FragDepth float FragDepth)
520:10        Constant:
530:10          0.500000
540:5  Function Definition: outputColor(vf4; ( global void)
550:5    Function Parameters: 
560:5      'color' ( in 4-component vector of float)
570:7    Sequence
580:7      move second child to first child ( temp 4-component vector of float)
590:7        'FragColor' (layout( location=0) out 4-component vector of float)
600:7        'color' ( in 4-component vector of float)
610:?   Linker Objects
620:?     'gl_FragDepth' ( gl_FragDepth float FragDepth)
630:?     'FragColor' (layout( location=0) out 4-component vector of float)
64