diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-10-28 21:43:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 21:43:22 +0100 |
commit | 2eaedcf14e515eb589885025b46d0aedc492830a (patch) | |
tree | 978ec177eefb5f680cc1218ca240d5d77afab90f /core/engine.cpp | |
parent | 1ee507d62cc6f0e7ec9f67723c3cea763b48af98 (diff) | |
parent | 54e6338c9bf87719908b173ab9023c7b56a9df6a (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.cpp | 12 |
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; } |