yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

jimihemindex outside gl_SampleMask range, compiler need report error. (#3556)68df2230

main
2.0 KiB55 linesraw
1index_outside_sample_mask_range.frag
2ERROR: 0:6: '[' : gl_SampleMask array index out of range '1'
3ERROR: 1 compilation errors.  No code generated.
4
5
6Shader version: 320
7ERROR: node is still EOpNull!
80:3  Function Definition: main( ( global void)
90:3    Function Parameters: 
100:?     Sequence
110:6      Sequence
120:6        move second child to first child ( temp highp int)
130:6          'invalidValue' ( temp highp int)
140:6          direct index ( temp highp int SampleMaskIn)
150:6            'gl_SampleMask' ( out unsized 2-element array of highp int SampleMaskIn)
160:6            Constant:
170:6              1 (const int)
180:7      move second child to first child ( temp mediump 4-component vector of float)
190:7        'fs_color' (layout( location=0) out mediump 4-component vector of float)
200:7        Constant:
210:7          1.000000
220:7          0.000000
230:7          0.000000
240:7          1.000000
250:?   Linker Objects
260:?     'fs_color' (layout( location=0) out mediump 4-component vector of float)
270:?     'gl_SampleMask' ( out unsized 2-element array of highp int SampleMaskIn)
28
29
30Linked fragment stage:
31
32
33Shader version: 320
34ERROR: node is still EOpNull!
350:3  Function Definition: main( ( global void)
360:3    Function Parameters: 
370:?     Sequence
380:6      Sequence
390:6        move second child to first child ( temp highp int)
400:6          'invalidValue' ( temp highp int)
410:6          direct index ( temp highp int SampleMaskIn)
420:6            'gl_SampleMask' ( out 2-element array of highp int SampleMaskIn)
430:6            Constant:
440:6              1 (const int)
450:7      move second child to first child ( temp mediump 4-component vector of float)
460:7        'fs_color' (layout( location=0) out mediump 4-component vector of float)
470:7        Constant:
480:7          1.000000
490:7          0.000000
500:7          0.000000
510:7          1.000000
520:?   Linker Objects
530:?     'fs_color' (layout( location=0) out mediump 4-component vector of float)
540:?     'gl_SampleMask' ( out 2-element array of highp int SampleMaskIn)
55