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

◆ cleanup()

void MayaFlux::Core::VKCommandManager::cleanup ( )

Cleanup all command pools and buffers.

Definition at line 45 of file VKCommandManager.cpp.

46{
48 if (!m_compute_allocated_buffers.empty()) {
51 }
52 m_device.destroyCommandPool(m_compute_command_pool);
53 m_compute_command_pool = nullptr;
54 }
55
56 if (m_command_pool) {
57 if (!m_allocated_buffers.empty()) {
58 m_device.freeCommandBuffers(m_command_pool, m_allocated_buffers);
59 m_allocated_buffers.clear();
60 }
61
62 m_device.destroyCommandPool(m_command_pool);
63 m_command_pool = nullptr;
64 }
65}
std::vector< vk::CommandBuffer > m_compute_allocated_buffers
std::vector< vk::CommandBuffer > m_allocated_buffers

References m_allocated_buffers, m_command_pool, m_compute_allocated_buffers, m_compute_command_pool, and m_device.

Referenced by ~VKCommandManager().

+ Here is the caller graph for this function: