MayaFlux 0.4.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 780 of file ShaderFoundry.cpp.

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

References m_command_buffers.