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