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

◆ operator=() [2/2]

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

Definition at line 29 of file VKDevice.cpp.

30{
31 if (this != &other) {
32 cleanup();
33 m_physical_device = other.m_physical_device;
34 m_logical_device = other.m_logical_device;
35 m_graphics_queue = other.m_graphics_queue;
36 m_compute_queue = other.m_compute_queue;
37 m_transfer_queue = other.m_transfer_queue;
38 m_queue_families = other.m_queue_families;
39
40 other.m_physical_device = VK_NULL_HANDLE;
41 other.m_logical_device = VK_NULL_HANDLE;
42 other.m_graphics_queue = VK_NULL_HANDLE;
43 other.m_compute_queue = VK_NULL_HANDLE;
44 other.m_transfer_queue = VK_NULL_HANDLE;
45 }
46 return *this;
47}
void cleanup()
Cleanup device resources.
Definition VKDevice.cpp:58
vk::PhysicalDevice m_physical_device
Selected physical device (GPU)
Definition VKDevice.hpp:109
vk::Queue m_compute_queue
Compute queue handle.
Definition VKDevice.hpp:113
vk::Queue m_transfer_queue
Transfer queue handle.
Definition VKDevice.hpp:114
vk::Device m_logical_device
Logical device handle.
Definition VKDevice.hpp:110
vk::Queue m_graphics_queue
Graphics queue handle.
Definition VKDevice.hpp:112
QueueFamilyIndices m_queue_families
Indices of required queue families.
Definition VKDevice.hpp:116