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.7 KiB70 linesraw
1hlsl.buffer.store3.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 uint)
180:11          43 (const uint)
190:11          44 (const uint)
200:12      Branch: Return with expression
210:12        Constant:
220:12          0.000000
230:12          0.000000
240:12          0.000000
250:12          0.000000
260:9  Function Definition: main( ( temp void)
270:9    Function Parameters: 
280:?     Sequence
290:9      move second child to first child ( temp 4-component vector of float)
300:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
310:9        Function Call: @main( ( temp 4-component vector of float)
320:?   Linker Objects
330:?     'buf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
340:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
35
36
37Linked fragment stage:
38
39
40Shader version: 500
41gl_FragCoord origin is upper left
42ERROR: node is still EOpNull!
430:9  Function Definition: @main( ( temp 4-component vector of float)
440:9    Function Parameters: 
450:?     Sequence
460:11      ERROR: Bad aggregation op
47 ( temp void)
480:11        'buf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
490:11        's' ( temp structure{ temp 4-component vector of float a})
500:11        Constant:
510:11          42 (const uint)
520:11          43 (const uint)
530:11          44 (const uint)
540:12      Branch: Return with expression
550:12        Constant:
560:12          0.000000
570:12          0.000000
580:12          0.000000
590:12          0.000000
600:9  Function Definition: main( ( temp void)
610:9    Function Parameters: 
620:?     Sequence
630:9      move second child to first child ( temp 4-component vector of float)
640:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
650:9        Function Call: @main( ( temp 4-component vector of float)
660:?   Linker Objects
670:?     'buf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
680:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
69
70SPIR-V is not generated for failed compile or link