aboutsummaryrefslogtreecommitdiff
path: root/StandAlone/ResourceLimits.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'StandAlone/ResourceLimits.cpp')
-rw-r--r--StandAlone/ResourceLimits.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/StandAlone/ResourceLimits.cpp b/StandAlone/ResourceLimits.cpp
index 1a76bf62..0e9d1b54 100644
--- a/StandAlone/ResourceLimits.cpp
+++ b/StandAlone/ResourceLimits.cpp
@@ -37,9 +37,9 @@
#include <sstream>
#include <cctype>
-#include "ResourceLimits.h"
+#include "glslang/Public/ResourceLimits.h"
-namespace glslang {
+TBuiltInResource Resources;
const TBuiltInResource DefaultTBuiltInResource = {
/* .MaxLights = */ 32,
@@ -505,6 +505,8 @@ void DecodeResourceLimits(TBuiltInResource* resources, char* config)
resources->maxTaskWorkGroupSizeZ_EXT = value;
else if (tokenStr == "MaxMeshViewCountEXT")
resources->maxMeshViewCountEXT = value;
+ else if (tokenStr == "MaxDualSourceDrawBuffersEXT")
+ resources->maxDualSourceDrawBuffersEXT = value;
else if (tokenStr == "nonInductiveForLoops")
resources->limits.nonInductiveForLoops = (value != 0);
else if (tokenStr == "whileLoops")
@@ -529,4 +531,12 @@ void DecodeResourceLimits(TBuiltInResource* resources, char* config)
}
}
-} // end namespace glslang
+TBuiltInResource* GetResources()
+{
+ return &Resources;
+}
+
+const TBuiltInResource* GetDefaultResources()
+{
+ return &DefaultTBuiltInResource;
+}