index outside gl_SampleMask range, compiler need report error. (#3556)
This commit is contained in:
parent
593dbafd0d
commit
68df223056
4 changed files with 68 additions and 0 deletions
8
Test/index_outside_sample_mask_range.frag
Normal file
8
Test/index_outside_sample_mask_range.frag
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#version 320 es
|
||||
layout (location = 0) out mediump vec4 fs_color;
|
||||
void main()
|
||||
{
|
||||
const highp int invalidIndex = (gl_MaxSamples + 31) / 32;
|
||||
highp int invalidValue = gl_SampleMask[invalidIndex];
|
||||
fs_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue