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

◆ end_commands()

bool MayaFlux::Portal::Graphics::ShaderFoundry::end_commands ( CommandBufferID  cmd_id)

End recording command buffer.

Parameters
cmd_idCommand buffer ID to end
Returns
True if successful, false if invalid ID or not active

Definition at line 776 of file ShaderFoundry.cpp.

777{
778 auto it = m_command_buffers.find(cmd_id);
779 if (it == m_command_buffers.end() || !it->second.is_active) {
780 return false;
781 }
782
783 it->second.cmd.end();
784 it->second.is_active = false;
785 return true;
786}
std::unordered_map< CommandBufferID, CommandBufferState > m_command_buffers

References m_command_buffers.