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.1 KiB49 linesraw
1hlsl.buffer.load4.error.frag
2ERROR: 0:11: '' : invalid index for vector Load 
3ERROR: 0:11: '=' :  cannot convert from ' temp void' to ' temp 4-component vector of uint'
4ERROR: 2 compilation errors.  No code generated.
5
6
7Shader version: 500
8gl_FragCoord origin is upper left
9ERROR: node is still EOpNull!
100:9  Function Definition: @main( ( temp 4-component vector of float)
110:9    Function Parameters: 
120:?     Sequence
130:12      Branch: Return with expression
140:12        Convert uint to float ( temp 4-component vector of float)
150:12          'v' ( temp 4-component vector of uint)
160:9  Function Definition: main( ( temp void)
170:9    Function Parameters: 
180:?     Sequence
190:9      move second child to first child ( temp 4-component vector of float)
200:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
210:9        Function Call: @main( ( temp 4-component vector of float)
220:?   Linker Objects
230:?     'buf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
240:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
25
26
27Linked fragment stage:
28
29
30Shader version: 500
31gl_FragCoord origin is upper left
32ERROR: node is still EOpNull!
330:9  Function Definition: @main( ( temp 4-component vector of float)
340:9    Function Parameters: 
350:?     Sequence
360:12      Branch: Return with expression
370:12        Convert uint to float ( temp 4-component vector of float)
380:12          'v' ( temp 4-component vector of uint)
390:9  Function Definition: main( ( temp void)
400:9    Function Parameters: 
410:?     Sequence
420:9      move second child to first child ( temp 4-component vector of float)
430:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
440:9        Function Call: @main( ( temp 4-component vector of float)
450:?   Linker Objects
460:?     'buf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
470:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
48
49SPIR-V is not generated for failed compile or link