yum-mirror/glslang

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

Saddamvalidate argument count in decomposeStructBufferMethodscc59a216

main
2.4 KiB64 linesraw
1hlsl.structbuffer.store.args.error.frag
2ERROR: 0:6: '' : too few arguments to buffer method 
3ERROR: 1 compilation errors.  No code generated.
4
5
6Shader version: 500
7gl_FragCoord origin is upper left
8ERROR: node is still EOpNull!
90:5  Function Definition: @main( ( temp 4-component vector of float)
100:5    Function Parameters: 
110:?     Sequence
120:6      ERROR: Bad aggregation op
13 ( temp void)
140:6        'buf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
150:6        Constant:
160:6          0 (const int)
170:7      Branch: Return with expression
180:7        Constant:
190:7          0.000000
200:7          0.000000
210:7          0.000000
220:7          0.000000
230:5  Function Definition: main( ( temp void)
240:5    Function Parameters: 
250:?     Sequence
260:5      move second child to first child ( temp 4-component vector of float)
270:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
280:5        Function Call: @main( ( temp 4-component vector of float)
290:?   Linker Objects
300:?     'buf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
310:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
32
33
34Linked fragment stage:
35
36
37Shader version: 500
38gl_FragCoord origin is upper left
39ERROR: node is still EOpNull!
400:5  Function Definition: @main( ( temp 4-component vector of float)
410:5    Function Parameters: 
420:?     Sequence
430:6      ERROR: Bad aggregation op
44 ( temp void)
450:6        'buf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
460:6        Constant:
470:6          0 (const int)
480:7      Branch: Return with expression
490:7        Constant:
500:7          0.000000
510:7          0.000000
520:7          0.000000
530:7          0.000000
540:5  Function Definition: main( ( temp void)
550:5    Function Parameters: 
560:?     Sequence
570:5      move second child to first child ( temp 4-component vector of float)
580:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
590:5        Function Call: @main( ( temp 4-component vector of float)
600:?   Linker Objects
610:?     'buf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
620:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
63
64SPIR-V is not generated for failed compile or link