MayaFlux 0.2.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 77 of file VKCommandManager.cpp.

78{
79 if (!command_buffer) {
80 return;
81 }
82
83 auto it = std::ranges::find(m_allocated_buffers, command_buffer);
84 if (it != m_allocated_buffers.end()) {
85 m_device.freeCommandBuffers(m_command_pool, 1, &command_buffer);
86 m_allocated_buffers.erase(it);
87 }
88}
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: