yum-mirror/glslang

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

David NetoHLSL: Check for bad integer argument on Load*, Store*, Interlocked* (#4208)59e5dcc3

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