diff --git a/backends/vulkan/runtime/vk_api/Runtime.cpp b/backends/vulkan/runtime/vk_api/Runtime.cpp index e82f631ddb4..da03c4e86d7 100644 --- a/backends/vulkan/runtime/vk_api/Runtime.cpp +++ b/backends/vulkan/runtime/vk_api/Runtime.cpp @@ -265,7 +265,7 @@ std::unique_ptr init_global_vulkan_runtime() { }; try { - return std::make_unique(Runtime(default_config)); + return std::make_unique(default_config); } catch (...) { } @@ -323,16 +323,6 @@ Runtime::~Runtime() { instance_ = VK_NULL_HANDLE; } -Runtime::Runtime(Runtime&& other) noexcept - : config_(other.config_), - instance_(other.instance_), - adapters_(std::move(other.adapters_)), - default_adapter_i_(other.default_adapter_i_), - debug_report_callback_(other.debug_report_callback_) { - other.instance_ = VK_NULL_HANDLE; - other.debug_report_callback_ = {}; -} - uint32_t Runtime::create_adapter(const Selector& selector) { VK_CHECK_COND( !device_mappings_.empty(), diff --git a/backends/vulkan/runtime/vk_api/Runtime.h b/backends/vulkan/runtime/vk_api/Runtime.h index 14e6bd57dcb..16f1400021c 100644 --- a/backends/vulkan/runtime/vk_api/Runtime.h +++ b/backends/vulkan/runtime/vk_api/Runtime.h @@ -51,7 +51,7 @@ class Runtime final { Runtime(const Runtime&) = delete; Runtime& operator=(const Runtime&) = delete; - Runtime(Runtime&&) noexcept; + Runtime(Runtime&&) = delete; Runtime& operator=(Runtime&&) = delete; ~Runtime();