MayaFlux 0.3.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 715 of file ShaderFoundry.cpp.

716{
717 auto& cmd_manager = m_backend->get_command_manager();
718
720
721 CommandBufferState& state = m_command_buffers[id];
722
723 state.cmd = (type == CommandBufferType::COMPUTE)
724 ? cmd_manager.begin_single_time_commands_compute()
725 : cmd_manager.begin_single_time_commands();
726
727 state.type = type;
728 state.is_active = true;
729
730 return id;
731}
std::unordered_map< CommandBufferID, CommandBufferState > m_command_buffers
std::shared_ptr< Core::VulkanBackend > m_backend

References MayaFlux::Portal::Graphics::ShaderFoundry::CommandBufferState::cmd, COMPUTE, 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: