glslang-zig/glslang/MachineIndependent
Chow 9b620aa0c1
Add flag to check whether offset is implicit or explicit (#2031)
When we use unsized array in shader storage buffer, glslang calculate the offset during delcaring the block, it may lead to incorrect block offsets when its implicit array size changed.

So here is what we do:
1. For GLSL, we add flag explicitOffset in TQualifier, and set it when layout offset is specified explicitly
2. By using this flag we could tell difference as whether it is an explicit offset, and recalculate the block member offset conditionally in OpenGL.
2020-03-11 03:59:25 -06:00
..
preprocessor EXT_debug_printf - make escape sequences better match C/C++ 2020-03-10 10:23:07 -05:00
attribute.cpp Web: Turn off bracket-style attributes, reflection, and IO mapping. 2019-08-20 23:21:55 -06:00
attribute.h HLSL: Fix #1912: add attribute syntax for nonreadable/nonwritable 2019-09-29 19:16:25 -06:00
Constant.cpp Copyright update, mostly to trigger bots again. 2020-03-01 04:51:40 -07:00
gl_types.h Web: Generalize _EXTENSIONS* in SPIR-V back-end. 2019-08-20 23:21:55 -06:00
glslang.m4 GL_EXT_debug_printf implementation 2020-03-05 13:41:34 -06:00
glslang.y GL_EXT_debug_printf implementation 2020-03-05 13:41:34 -06:00
glslang_tab.cpp GL_EXT_debug_printf implementation 2020-03-05 13:41:34 -06:00
glslang_tab.cpp.h GL_EXT_debug_printf implementation 2020-03-05 13:41:34 -06:00
InfoSink.cpp Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
Initialize.cpp GL_EXT_debug_printf implementation 2020-03-05 13:41:34 -06:00
Initialize.h Comment out params instead of removing 2019-09-11 08:59:47 -04:00
Intermediate.cpp Copyright update, mostly to trigger bots again. 2020-03-01 04:51:40 -07:00
intermOut.cpp GL_EXT_debug_printf implementation 2020-03-05 13:41:34 -06:00
IntermTraverse.cpp Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
iomapper.cpp Merge pull request #2089 from Roy-AMD/Fix-iomapper-issue 2020-02-19 03:51:38 -07:00
iomapper.h Fix memory corruption in TGlslIoMapper 2020-02-02 11:31:49 +02:00
limits.cpp Web: Turn off includes, independent preprocessing path, fine tune all. 2019-08-20 23:21:56 -06:00
linkValidate.cpp Fix #1981 2019-11-27 23:37:16 -05:00
LiveTraverser.h [lumped builds] Add include guards (#pragma once) to header files that did not have any. 2017-05-10 16:58:38 +03:00
localintermediate.h SPV/Vulkan: Add support for Vulkan 1.2, which defaults to SPIR-V 1.5. 2020-01-15 00:10:41 -07:00
parseConst.cpp HLSL: Allow empty struct initializers 2017-04-27 18:22:52 -06:00
ParseContextBase.cpp Web: Turn off includes, independent preprocessing path, fine tune all. 2019-08-20 23:21:56 -06:00
ParseHelper.cpp Add flag to check whether offset is implicit or explicit (#2031) 2020-03-11 03:59:25 -06:00
ParseHelper.h Remove unnecessary semi-colons and add warning about them 2019-10-11 11:25:04 -04:00
parseVersions.h Move symbol builtin check to grammar stage 2020-01-08 14:07:50 +08:00
pch.cpp Use precompiled headers for some glslang projects 2018-10-31 15:38:08 -05:00
pch.h Use precompiled headers for some glslang projects 2018-10-31 15:38:08 -05:00
PoolAlloc.cpp Memory: Mak full explicit destructor functionality, techincally correctly. 2017-11-21 14:32:39 -07:00
propagateNoContraction.cpp Web: Generalize _EXTENSIONS* in SPIR-V back-end. 2019-08-20 23:21:55 -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 Fix warning: size_t->int implicit cast 2019-11-03 01:34:54 +03:00
reflection.h Reflection will crash when the VS input symbol defines the same name with FS output symbol 2019-09-18 14:04:29 +08: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 GL_EXT_debug_printf implementation 2020-03-05 13:41:34 -06: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 Copyright update, mostly to trigger bots again. 2020-03-01 04:51:40 -07:00
SymbolTable.cpp Fix #2020: PR #1977 broke HLSL member consistency, this finishes it... 2019-12-09 23:48:50 -07:00
SymbolTable.h HLSL: Fix #1912: add attribute syntax for overriding image formats. 2019-09-28 11:39:15 -06:00
Versions.cpp GL_EXT_debug_printf implementation 2020-03-05 13:41:34 -06:00
Versions.h GL_EXT_debug_printf implementation 2020-03-05 13:41:34 -06:00