MayaFlux 1.0.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 1006 of file ShaderFoundry.cpp.

1007{
1008 auto it = m_command_buffers.find(cmd_id);
1009 if (it == m_command_buffers.end() || !it->second.is_active) {
1010 return false;
1011 }
1012
1013 it->second.cmd.end();
1014 it->second.is_active = false;
1015 return true;
1016}
std::unordered_map< CommandBufferID, CommandBufferState > m_command_buffers

References m_command_buffers.