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

◆ operator=() [2/2]

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

Definition at line 212 of file VKDevice.cpp.

213{
214 if (this != &other) {
215 cleanup();
216 m_physical_device = other.m_physical_device;
217 m_logical_device = other.m_logical_device;
218 m_graphics_queue = other.m_graphics_queue;
219 m_compute_queue = other.m_compute_queue;
220 m_transfer_queue = other.m_transfer_queue;
221 m_queue_families = other.m_queue_families;
222 m_graphics_presents = other.m_graphics_presents;
223 m_present_queues = std::move(other.m_present_queues);
224 m_device_name = std::move(other.m_device_name);
225 m_device_uuid = other.m_device_uuid;
226 m_supports_mesh_shaders = other.m_supports_mesh_shaders;
227
228 other.m_physical_device = VK_NULL_HANDLE;
229 other.m_logical_device = VK_NULL_HANDLE;
230 other.m_graphics_queue = VK_NULL_HANDLE;
231 other.m_compute_queue = VK_NULL_HANDLE;
232 other.m_transfer_queue = VK_NULL_HANDLE;
233 }
234 return *this;
235}
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:246
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