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

705{
706 auto& cmd_manager = m_backend->get_command_manager();
707
709
710 CommandBufferState& state = m_command_buffers[id];
711 state.cmd = cmd_manager.begin_single_time_commands();
712 state.type = type;
713 state.is_active = true;
714
715 return id;
716}
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: