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

◆ operator=() [2/2]

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

Definition at line 25 of file VKInstance.cpp.

26{
27 if (this != &other) {
28 cleanup();
29 m_instance = other.m_instance;
30 m_debug_messenger = other.m_debug_messenger;
31 m_validation_enabled = other.m_validation_enabled;
32
33 other.m_instance = nullptr;
34 other.m_debug_messenger = nullptr;
35 }
36 return *this;
37}
void cleanup()
Cleanup Vulkan instance.
bool m_validation_enabled
Flag to indicate if validation layers are enabled.
vk::Instance m_instance
Vulkan instance handle.
vk::DebugUtilsMessengerEXT m_debug_messenger
Debug messenger for validation layers.