MayaFlux 0.1.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 35 of file VKCommandManager.cpp.

36{
37 if (m_command_pool) {
38 if (!m_allocated_buffers.empty()) {
39 m_device.freeCommandBuffers(m_command_pool, m_allocated_buffers);
40 m_allocated_buffers.clear();
41 }
42
43 m_device.destroyCommandPool(m_command_pool);
44 m_command_pool = nullptr;
45 }
46}
std::vector< vk::CommandBuffer > m_allocated_buffers

References m_allocated_buffers, m_command_pool, and m_device.

Referenced by ~VKCommandManager().

+ Here is the caller graph for this function: