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

◆ begin_commands()

CommandBufferID MayaFlux::Portal::Graphics::ShaderFoundry::begin_commands ( CommandBufferType  type)

Begin recording command buffer.

Parameters
typeCommand buffer type (GRAPHICS, COMPUTE, TRANSFER)
Returns
Command buffer ID

Definition at line 673 of file ShaderFoundry.cpp.

674{
675 auto& cmd_manager = m_backend->get_command_manager();
676
678
679 CommandBufferState& state = m_command_buffers[id];
680 state.cmd = cmd_manager.begin_single_time_commands();
681 state.type = type;
682 state.is_active = true;
683
684 return id;
685}
std::unordered_map< CommandBufferID, CommandBufferState > m_command_buffers
std::shared_ptr< Core::VulkanBackend > m_backend

References MayaFlux::Portal::Graphics::ShaderFoundry::CommandBufferState::cmd, MayaFlux::Portal::Graphics::ShaderFoundry::CommandBufferState::is_active, m_backend, m_command_buffers, m_next_command_id, and MayaFlux::Portal::Graphics::ShaderFoundry::CommandBufferState::type.

Referenced by begin_commands_with_wait().

+ Here is the caller graph for this function: