KhronosGroup / glslang

Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.
Other
2.9k stars 815 forks source link

index outside gl_SampleMask range, compiler need report error. #3556

Closed jimihem closed 2 months ago

jimihem commented 3 months ago

index outside gl_SampleMask range, compiler need report error.

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); }

jimihem commented 2 months ago

@arcady-lunarg Please help review this PR