MayaFlux 0.2.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 761 of file ShaderFoundry.cpp.

762{
763 auto it = m_command_buffers.find(cmd_id);
764 if (it == m_command_buffers.end() || !it->second.is_active) {
765 return false;
766 }
767
768 it->second.cmd.end();
769 it->second.is_active = false;
770 return true;
771}
std::unordered_map< CommandBufferID, CommandBufferState > m_command_buffers

References m_command_buffers.