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

◆ operator=() [2/2]

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

Definition at line 232 of file VKDevice.cpp.

233{
234 if (this != &other) {
235 cleanup();
236 m_physical_device = other.m_physical_device;
237 m_logical_device = other.m_logical_device;
238 m_graphics_queue = other.m_graphics_queue;
239 m_compute_queue = other.m_compute_queue;
240 m_transfer_queue = other.m_transfer_queue;
241 m_queue_families = other.m_queue_families;
242 m_graphics_presents = other.m_graphics_presents;
243 m_present_queues = std::move(other.m_present_queues);
244 m_device_name = std::move(other.m_device_name);
245 m_device_uuid = other.m_device_uuid;
246 m_supports_mesh_shaders = other.m_supports_mesh_shaders;
247
248 other.m_physical_device = VK_NULL_HANDLE;
249 other.m_logical_device = VK_NULL_HANDLE;
250 other.m_graphics_queue = VK_NULL_HANDLE;
251 other.m_compute_queue = VK_NULL_HANDLE;
252 other.m_transfer_queue = VK_NULL_HANDLE;
253 }
254 return *this;
255}
std::array< uint8_t, VK_UUID_SIZE > m_device_uuid
Selected device UUID.
Definition VKDevice.hpp:208
void cleanup()
Cleanup device resources.
Definition VKDevice.cpp:266
bool m_supports_mesh_shaders
Whether the device supports mesh shaders.
Definition VKDevice.hpp:209
vk::PhysicalDevice m_physical_device
Selected physical device (GPU)
Definition VKDevice.hpp:172
vk::Queue m_compute_queue
Compute queue handle.
Definition VKDevice.hpp:176
vk::Queue m_transfer_queue
Transfer queue handle.
Definition VKDevice.hpp:177
vk::Device m_logical_device
Logical device handle.
Definition VKDevice.hpp:173
bool m_graphics_presents
Graphics family passed the surfaceless presentation probe.
Definition VKDevice.hpp:205
std::unordered_map< uint32_t, vk::Queue > m_present_queues
One queue per presentation-capable family.
Definition VKDevice.hpp:206
std::string m_device_name
Selected device name, cached for logging.
Definition VKDevice.hpp:207
vk::Queue m_graphics_queue
Graphics queue handle.
Definition VKDevice.hpp:175
QueueFamilyIndices m_queue_families
Indices of required queue families.
Definition VKDevice.hpp:179