yum-mirror/glslang

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

David Netohlsl: Ensure scope is popped even when method body fails to parseddd6e6dd

main
1.8 KiB53 linesraw
1hlsl.nested.name.error.frag
2ERROR: 0:4: 'resurn' : unknown variable 
3ERROR: 0:4: ';' : Expected 
4ERROR: 0:4: 'm3' : no matching overloaded function found 
5ERROR: 0:9: '' : function does not return a value: @main
6ERROR: 4 compilation errors.  No code generated.
7
8
9Shader version: 500
10gl_FragCoord origin is upper left
11ERROR: node is still EOpNull!
120:3  Function Definition: S::m( ( temp void)
130:3    Function Parameters: 
140:3      '@this' ( temp structure{})
150:?     Sequence
160:4      Constant:
170:4        0.000000
180:9  Function Definition: @main( ( temp 4-component vector of float)
190:9    Function Parameters: 
200:9  Function Definition: main( ( temp void)
210:9    Function Parameters: 
220:?     Sequence
230:9      move second child to first child ( temp 4-component vector of float)
240:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
250:9        Function Call: @main( ( temp 4-component vector of float)
260:?   Linker Objects
270:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
28
29
30Linked fragment stage:
31
32
33Shader version: 500
34gl_FragCoord origin is upper left
35ERROR: node is still EOpNull!
360:3  Function Definition: S::m( ( temp void)
370:3    Function Parameters: 
380:3      '@this' ( temp structure{})
390:?     Sequence
400:4      Constant:
410:4        0.000000
420:9  Function Definition: @main( ( temp 4-component vector of float)
430:9    Function Parameters: 
440:9  Function Definition: main( ( temp void)
450:9    Function Parameters: 
460:?     Sequence
470:9      move second child to first child ( temp 4-component vector of float)
480:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
490:9        Function Call: @main( ( temp 4-component vector of float)
500:?   Linker Objects
510:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
52
53SPIR-V is not generated for failed compile or link