glslang-zig/glslang/MachineIndependent
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
..
preprocessor PP: Report an error when a # is not the first thing on a line 2023-12-07 19:29:48 -05:00
attribute.cpp Add --no-link option 2023-09-18 17:31:05 -04:00
attribute.h Add --no-link option 2023-09-18 17:31:05 -04:00
Constant.cpp Fixed check uint64 before set bool 2023-12-14 16:27:44 -05:00
gl_types.h 1. fix macro definition value for unsinged-int64-vector, according to kronos spec at https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_gpu_shader_int64.txt; 2. fix typo in reflection 2021-03-15 16:54:31 +08:00
glslang.y Remove various warning suppression pragmas 2023-12-01 11:59:54 -05:00
glslang_tab.cpp Remove various warning suppression pragmas 2023-12-01 11:59:54 -05:00
glslang_tab.cpp.h Add --no-link option 2023-09-18 17:31:05 -04:00
InfoSink.cpp Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
Initialize.cpp support GL_ARB_texture_multisample extension. 2023-12-28 18:38:39 -05:00
Initialize.h Clean the implementation of GL_EXT_texture_shadow_lod. 2023-10-02 15:10:11 -04:00
Intermediate.cpp Support GL_EXT_draw_instanced extension. 2023-12-12 18:22:04 -05:00
intermOut.cpp Remove custom implementations of isinf and isnan 2023-11-20 18:30:35 -05:00
IntermTraverse.cpp 8. io mapping refine & qualifier member check & resolver expand (#2396) 2020-11-03 13:34:19 -07:00
iomapper.cpp GL_EXT_spirv_intrinsics: Fix a typo in function naming 2023-11-06 12:50:02 -05:00
iomapper.h Remove GLSLANG_WEB and GLSLANG_WEB_DEVEL 2023-07-28 11:49:10 -06:00
limits.cpp Remove GLSLANG_WEB and GLSLANG_WEB_DEVEL 2023-07-28 11:49:10 -06:00
linkValidate.cpp Remove GLSLANG_WEB and GLSLANG_WEB_DEVEL 2023-07-28 11:49:10 -06:00
LiveTraverser.h also search global variables assignment for live variables 2020-07-20 18:43:00 -04:00
localintermediate.h Implement relaxed rule for opaque struct members 2023-11-28 19:19:02 -05:00
parseConst.cpp Use nullptr where possible instead of NULL or 0 2022-11-30 09:33:28 -07:00
ParseContextBase.cpp Implement relaxed rule for opaque struct members 2023-11-28 19:19:02 -05:00
ParseHelper.cpp The array size of gl_SampleMask and gl_SampleMaskIn is ceil(gl_MaxSamples/32) 2023-12-29 16:23:16 -05:00
ParseHelper.h Add BUILD_WERROR option 2023-11-29 17:34:53 -05:00
parseVersions.h Remove GLSLANG_WEB and GLSLANG_WEB_DEVEL 2023-07-28 11:49:10 -06:00
pch.h Use precompiled headers for some glslang projects 2018-10-31 15:38:08 -05:00
PoolAlloc.cpp Fix ODR violations 2023-08-24 12:48:35 -06:00
propagateNoContraction.cpp Remove GLSLANG_WEB and GLSLANG_WEB_DEVEL 2023-07-28 11:49:10 -06:00
propagateNoContraction.h [lumped builds] Add include guards (#pragma once) to header files that did not have any. 2017-05-10 16:58:38 +03:00
reflection.cpp Remove GLSLANG_WEB and GLSLANG_WEB_DEVEL 2023-07-28 11:49:10 -06:00
reflection.h Remove GLSLANG_WEB and GLSLANG_WEB_DEVEL 2023-07-28 11:49:10 -06:00
RemoveTree.cpp Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
RemoveTree.h [lumped builds] Add include guards (#pragma once) to header files that did not have any. 2017-05-10 16:58:38 +03:00
Scan.cpp support GL_EXT_texture_array extention. 2023-12-12 14:31:34 -05:00
Scan.h SPV: Fix #1575, fix #1593: Support HLSL #line 2018-12-07 17:36:33 -07:00
ScanContext.h GL_EXT_buffer_reference 2019-01-07 12:36:13 -06:00
ShaderLang.cpp Remove OGLCompiler and HLSL stub libraries from build 2023-11-29 08:20:27 -05:00
span.h Use C++ containers for builtin versioning 2023-12-22 14:19:22 -05:00
SpirvIntrinsics.cpp Use std::variant to represent TSpirvTypeParameter 2023-09-11 21:12:35 -04:00
SymbolTable.cpp Add GL_EXT_texture_shadow_lod support 2023-09-05 19:00:10 -04:00
SymbolTable.h Clean the implementation of GL_EXT_texture_shadow_lod. 2023-10-02 15:10:11 -04:00
Versions.cpp Support GL_EXT_draw_instanced extension. 2023-12-12 18:22:04 -05:00
Versions.h Support GL_EXT_draw_instanced extension. 2023-12-12 18:22:04 -05:00