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

946{
947 auto& cmd_manager = m_backend->get_command_manager();
948
950
951 CommandBufferState& state = m_command_buffers[id];
952
953 state.cmd = (type == CommandBufferType::COMPUTE)
954 ? cmd_manager.begin_single_time_commands_compute()
955 : cmd_manager.begin_single_time_commands();
956
957 state.type = type;
958 state.is_active = true;
959
960 return id;
961}
vk::PhysicalDeviceType type
Definition VKDevice.cpp:126
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, type, and MayaFlux::Portal::Graphics::ShaderFoundry::CommandBufferState::type.

Referenced by begin_commands_with_wait().

+ Here is the caller graph for this function: