glslang-zig/glslang
jimihem db4d6f85af
The array size of gl_SampleMask and gl_SampleMaskIn is ceil(gl_MaxSamples/32)
Oes spec says:
    For the both the input array gl_SampleMaskIn[] and the output array gl_SampleMask[], bit B of mask M
    (gl_SampleMaskIn[M] or gl_SampleMask[M]) corresponds to sample 32*M+B. These arrays have
    ceil(gl_MaxSamples/32) elements, where gl_MaxSamples is the maximum number of color samples
    supported by the implementation.

    But glslang report error "array must have size before use length".

    layout(location = 0) out mediump vec4 fragColor;
    void main (void)
    {
    for (int i = 0; i < gl_SampleMask.length(); ++i)
    gl_SampleMask[i] = int(0xAAAAAAAA);

       fragColor = vec4(0.0, 1.0, 0.0, 1.0);
    }

* Add two test items, one is for gl_MaxSapmles = 32 and the other one is for gl_MaxSapmles = 64.
2023-12-29 16:23:16 -05:00
..
CInterface Use custom callbacks if they are available in 'i->callbacks' 2023-05-09 10:38:08 -06:00
ExtensionHeaders Revert port of GL_EXT_shader_realtime_clock to GL_EXT_spirv_intrinsics 2021-11-11 23:39:47 -07:00
GenericCodeGen Remove debugOptions from internal classes 2023-10-25 20:13:20 -04:00
HLSL fix: Support SV_ViewID keywords for hlsl. 2023-11-22 17:04:38 -05:00
Include Remove various warning suppression pragmas 2023-12-01 11:59:54 -05:00
MachineIndependent The array size of gl_SampleMask and gl_SampleMaskIn is ceil(gl_MaxSamples/32) 2023-12-29 16:23:16 -05:00
OSDependent Only install/test if PROJECT_IS_TOP_LEVEL 2023-12-01 18:35:36 -05:00
Public Remove debugOptions from internal classes 2023-10-25 20:13:20 -04:00
ResourceLimits Remove various warning suppression pragmas 2023-12-01 11:59:54 -05:00
CMakeLists.txt Only install/test if PROJECT_IS_TOP_LEVEL 2023-12-01 18:35:36 -05:00
updateGrammar Remove glslang.m4 2023-07-28 15:14:48 -06:00