Improve ResourceLimits interface to be more forward compatible
authorGreg Fischer <greg@lunarg.com>
Fri, 28 Oct 2022 23:27:18 +0000 (17:27 -0600)
committerGreg Fischer <greg@lunarg.com>
Tue, 1 Nov 2022 18:06:51 +0000 (12:06 -0600)
commit90c5214344bc9ec0e7c5cc09e86dad82b8b7abc9
treeef969b56a5749ece7b75cc994583df0dba53d9eb
parent980ac50813fb567b6af6b89282eae850b328c967
Improve ResourceLimits interface to be more forward compatible

New interface allows users to generate ResourceLimits for interface so
that additions to TBuiltInResource do not break the ABI.

Users should use the glslang-default-resource-limits library and the
Public/ResourceLimits.h header. Similar changes have been made to the
C interface. Use Public/resource_limits_c.h.

Fixes #2822
BUILD.bazel
StandAlone/ResourceLimits.cpp
StandAlone/StandAlone.cpp
StandAlone/resource_limits_c.cpp
glslang/CInterface/glslang_c_interface.cpp
glslang/CMakeLists.txt
glslang/Public/ResourceLimits.h [moved from StandAlone/ResourceLimits.h with 90% similarity]
glslang/Public/resource_limits_c.h [moved from StandAlone/resource_limits_c.h with 95% similarity]
gtests/BuiltInResource.FromFile.cpp
gtests/Config.FromFile.cpp
gtests/TestFixture.h