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