MayaFlux 0.5.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 860 of file ShaderFoundry.cpp.

861{
862 auto it = m_command_buffers.find(cmd_id);
863 if (it == m_command_buffers.end() || !it->second.is_active) {
864 return false;
865 }
866
867 it->second.cmd.end();
868 it->second.is_active = false;
869 return true;
870}
std::unordered_map< CommandBufferID, CommandBufferState > m_command_buffers

References m_command_buffers.