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

◆ begin_single_time_commands()

vk::CommandBuffer MayaFlux::Core::VKCommandManager::begin_single_time_commands ( )

Begin single-time command (for transfers, etc.)

Returns
Command buffer ready for recording

Definition at line 79 of file VKCommandManager.cpp.

80{
81 vk::CommandBuffer command_buffer = allocate_command_buffer();
82
83 vk::CommandBufferBeginInfo begin_info {};
84 begin_info.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit;
85
86 command_buffer.begin(begin_info);
87
88 return command_buffer;
89}
vk::CommandBuffer allocate_command_buffer()
Allocate a command buffer from the pool.

References allocate_command_buffer().

Referenced by MayaFlux::Core::BackendResourceManager::execute_immediate_commands().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: