summaryrefslogtreecommitdiff
path: root/core/engine.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-10-28 21:43:22 +0100
committerGitHub <noreply@github.com>2020-10-28 21:43:22 +0100
commit2eaedcf14e515eb589885025b46d0aedc492830a (patch)
tree978ec177eefb5f680cc1218ca240d5d77afab90f /core/engine.cpp
parent1ee507d62cc6f0e7ec9f67723c3cea763b48af98 (diff)
parent54e6338c9bf87719908b173ab9023c7b56a9df6a (diff)
Merge pull request #42361 from akien-mga/vulkan-layers-opt-in
Vulkan: Make validation layers optional
Diffstat (limited to 'core/engine.cpp')
-rw-r--r--core/engine.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/engine.cpp b/core/engine.cpp
index d08cf92ecb..b0037ffb37 100644
--- a/core/engine.cpp
+++ b/core/engine.cpp
@@ -181,6 +181,14 @@ String Engine::get_license_text() const {
return String(GODOT_LICENSE_TEXT);
}
+bool Engine::is_abort_on_gpu_errors_enabled() const {
+ return abort_on_gpu_errors;
+}
+
+bool Engine::is_validation_layers_enabled() const {
+ return use_validation_layers;
+}
+
void Engine::add_singleton(const Singleton &p_singleton) {
singletons.push_back(p_singleton);
singleton_ptrs[p_singleton.name] = p_singleton.ptr;
@@ -208,10 +216,6 @@ Engine *Engine::get_singleton() {
return singleton;
}
-bool Engine::is_abort_on_gpu_errors_enabled() const {
- return abort_on_gpu_errors;
-}
-
Engine::Engine() {
singleton = this;
}