MayaFlux 0.2.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 90 of file VKCommandManager.cpp.

91{
92 vk::CommandBuffer command_buffer = allocate_command_buffer();
93
94 vk::CommandBufferBeginInfo begin_info {};
95 begin_info.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit;
96
97 command_buffer.begin(begin_info);
98
99 return command_buffer;
100}
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: