MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ operator=() [2/2]

VKInstance & MayaFlux::Core::VKInstance::operator= ( VKInstance &&  other)
noexcept

Definition at line 28 of file VKInstance.cpp.

29{
30 if (this != &other) {
31 cleanup();
32 m_instance = other.m_instance;
33 m_debug_messenger = other.m_debug_messenger;
34 m_validation_enabled = other.m_validation_enabled;
35 m_dynamic_dispatcher = other.m_dynamic_dispatcher;
36
37 other.m_instance = nullptr;
38 other.m_debug_messenger = nullptr;
39 }
40 return *this;
41}
void cleanup()
Cleanup Vulkan instance.
bool m_validation_enabled
Flag to indicate if validation layers are enabled.
vk::detail::DispatchLoaderDynamic m_dynamic_dispatcher
Dynamic dispatcher for extension functions.
vk::Instance m_instance
Vulkan instance handle.
vk::DebugUtilsMessengerEXT m_debug_messenger
Debug messenger for validation layers.