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.4 KiB59 linesraw
1hlsl.buffer.load2.error.frag
2ERROR: 0:11: '' : invalid index for vector Load 
3ERROR: 0:11: '=' :  cannot convert from ' temp void' to ' temp 2-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        Construct vec4 ( temp 4-component vector of float)
150:12          Convert uint to float ( temp 2-component vector of float)
160:12            'v' ( temp 2-component vector of uint)
170:12          Constant:
180:12            0.000000
190:12          Constant:
200:12            0.000000
210:9  Function Definition: main( ( temp void)
220:9    Function Parameters: 
230:?     Sequence
240:9      move second child to first child ( temp 4-component vector of float)
250:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
260:9        Function Call: @main( ( temp 4-component vector of float)
270:?   Linker Objects
280:?     'buf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
290:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
30
31
32Linked fragment stage:
33
34
35Shader version: 500
36gl_FragCoord origin is upper left
37ERROR: node is still EOpNull!
380:9  Function Definition: @main( ( temp 4-component vector of float)
390:9    Function Parameters: 
400:?     Sequence
410:12      Branch: Return with expression
420:12        Construct vec4 ( temp 4-component vector of float)
430:12          Convert uint to float ( temp 2-component vector of float)
440:12            'v' ( temp 2-component vector of uint)
450:12          Constant:
460:12            0.000000
470:12          Constant:
480:12            0.000000
490:9  Function Definition: main( ( temp void)
500:9    Function Parameters: 
510:?     Sequence
520:9      move second child to first child ( temp 4-component vector of float)
530:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
540:9        Function Call: @main( ( temp 4-component vector of float)
550:?   Linker Objects
560:?     'buf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of uint @data})
570:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
58
59SPIR-V is not generated for failed compile or link