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

◆ free_command_buffer()

void MayaFlux::Core::VKCommandManager::free_command_buffer ( vk::CommandBuffer  command_buffer)

Free a command buffer back to the pool.

Definition at line 66 of file VKCommandManager.cpp.

67{
68 if (!command_buffer) {
69 return;
70 }
71
72 auto it = std::ranges::find(m_allocated_buffers, command_buffer);
73 if (it != m_allocated_buffers.end()) {
74 m_device.freeCommandBuffers(m_command_pool, 1, &command_buffer);
75 m_allocated_buffers.erase(it);
76 }
77}
std::vector< vk::CommandBuffer > m_allocated_buffers

References m_allocated_buffers, m_command_pool, and m_device.

Referenced by end_single_time_commands().

+ Here is the caller graph for this function: