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