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

◆ operator=() [2/2]

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

Definition at line 34 of file VKDescriptorManager.cpp.

35{
36 if (this != &other) {
37 if (!m_pools.empty() || !m_layouts.empty()) {
39 "VKDescriptorManager move-assigned without cleanup() - potential leak");
40 }
41
42 m_device = other.m_device;
43 m_pools = std::move(other.m_pools);
44 m_current_pool_index = other.m_current_pool_index;
45 m_pool_size = other.m_pool_size;
46 m_allocated_count = other.m_allocated_count;
47 m_pool_capacity = other.m_pool_capacity;
48 m_layouts = std::move(other.m_layouts);
49 m_layout_cache = std::move(other.m_layout_cache);
50
51 other.m_device = nullptr;
52 other.m_pools.clear();
53 other.m_layouts.clear();
54 }
55 return *this;
56}
#define MF_WARN(comp, ctx,...)
uint32_t m_allocated_count
Total allocated sets.
std::unordered_map< size_t, size_t > m_layout_cache
uint32_t m_pool_capacity
Total capacity across all pools.
std::vector< vk::DescriptorPool > m_pools
std::vector< vk::DescriptorSetLayout > m_layouts
@ GraphicsBackend
Graphics/visual rendering backend (Vulkan, OpenGL)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Journal::GraphicsBackend, and MF_WARN.