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.9 KiB53 linesraw
1hlsl.do.nested.error.frag
2ERROR: 0:3: 'resurn' : unknown variable 
3ERROR: 0:3: ';' : Expected 
4ERROR: 0:3: 'do sub-statement' : Expected 
5ERROR: 0:8: '' : 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:2  Function Definition: S::m( ( temp void)
130:2    Function Parameters: 
140:2      '@this' ( temp structure{})
150:?     Sequence
160:3      Constant:
170:3        true (const bool)
180:8  Function Definition: @main( ( temp 4-component vector of float)
190:8    Function Parameters: 
200:8  Function Definition: main( ( temp void)
210:8    Function Parameters: 
220:?     Sequence
230:8      move second child to first child ( temp 4-component vector of float)
240:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
250:8        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:2  Function Definition: S::m( ( temp void)
370:2    Function Parameters: 
380:2      '@this' ( temp structure{})
390:?     Sequence
400:3      Constant:
410:3        true (const bool)
420:8  Function Definition: @main( ( temp 4-component vector of float)
430:8    Function Parameters: 
440:8  Function Definition: main( ( temp void)
450:8    Function Parameters: 
460:?     Sequence
470:8      move second child to first child ( temp 4-component vector of float)
480:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
490:8        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