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