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