MayaFlux 0.3.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 115 of file VKCommandManager.cpp.

116{
117 vk::CommandBuffer command_buffer = allocate_command_buffer();
118
119 vk::CommandBufferBeginInfo begin_info {};
120 begin_info.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit;
121
122 command_buffer.begin(begin_info);
123
124 return command_buffer;
125}
vk::CommandBuffer allocate_command_buffer(vk::CommandBufferLevel level=vk::CommandBufferLevel::ePrimary)
Allocate a command buffer with specified level.

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: