glslang-zig/glslang/Include
Roy.li 24dcbd1b1f
Reserve unused std140 uniform block in reflection, and fix uniform block matrix layout (#2041)
According to the spec glsl4.60.7:
4.4.5. Uniform and Shader Storage Block Layout Qualifiers:
"The packed qualifier overrides only std140, std430, and shared; other qualifiers are inherited.
When packed is used, no shareable layout is guaranteed. The compiler and linker can optimize
memory use based on what variables actively get used and on other criteria. Offsets must be
queried, as there is no other way of guaranteeing where (and which) variables reside within the
block"

we should reserve std140 block and shared block in reflection.

According to the spec glsl4.60.7:
4.4.5. Uniform and Shader Storage Block Layout Qualifiers:
"The row_major and column_major qualifiers only affect the layout of matrices, including all
matrices contained in structures and arrays they are applied to, to all depths of nesting. These
qualifiers can be applied to other types, but will have no effect."

We need ensure all matrix block member been effect.

Support EShMsgKeepUncalled in reflection

EShMsgKeepUncalled  is a link message for link program.
We need only one option to control uncalled function optimization.
If we set EShMsgKeepUncalled as false in link time, linker won't be keep the uncall function sequence in AST,  and if we set EShMsgKeepUncalled as true in link time, linker will keep all uncalled function sequence in AST.
So, in reflecte time, we just only travers all function sequence. It make EShMsgKeepUncalled  only work at linker, and can effect reflection.

Recursively layout packing to "block member"

layout packing isn't set recursively, it causes TReflection::getOffsets doesn't work correctly.
2020-05-15 02:26:48 -06:00
..
arrays.h Implement GL_NV_cooperative_matrix 2019-02-25 23:42:59 -06:00
BaseTypes.h Add support for es extension GL_EXT_blend_func_extended 2020-04-30 23:21:14 -07:00
Common.h Add cstdlib include 2019-04-06 07:43:17 -04:00
ConstantUnion.h Fixes for gcc 9 / -Werror=deprecated-copy 2019-10-19 15:36:34 +03:00
glslang_c_interface.h Add support for es extension GL_EXT_blend_func_extended 2020-04-30 23:21:14 -07:00
glslang_c_shader_types.h Reserve unused std140 uniform block in reflection, and fix uniform block matrix layout (#2041) 2020-05-15 02:26:48 -06:00
InfoSink.h Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
InitializeGlobals.h Memory: Remove the need for per-thread tear down. 2017-11-13 01:52:11 -07:00
intermediate.h GL_EXT_ray_query updates 2020-03-19 11:09:57 -04:00
PoolAlloc.h Remove glslang::pool_allocator::setAllocator 2019-12-04 14:09:03 -08:00
ResourceLimits.h Add support for es extension GL_EXT_blend_func_extended 2020-04-30 23:21:14 -07:00
revision.h Bump version. 2020-05-15 02:16:13 -06:00
revision.template Make file formatting comply with POSIX and Unix standards 2020-03-21 03:20:25 -04:00
ShHandle.h Memory: Remove the need for per-thread tear down. 2017-11-13 01:52:11 -07:00
Types.h Shader interface matching rework to fix #2136 (#2156) 2020-04-02 02:03:53 -06:00