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

◆ begin_single_time_commands_compute()

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

Begin single-time command for compute operations.

Returns
Command buffer ready for recording

Definition at line 127 of file VKCommandManager.cpp.

128{
129 vk::CommandBufferAllocateInfo alloc_info {};
130 alloc_info.commandPool = m_compute_command_pool;
131 alloc_info.level = vk::CommandBufferLevel::ePrimary;
132 alloc_info.commandBufferCount = 1;
133
134 vk::CommandBuffer cmd = m_device.allocateCommandBuffers(alloc_info).front();
135 m_compute_allocated_buffers.push_back(cmd);
136
137 vk::CommandBufferBeginInfo begin_info {};
138 begin_info.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit;
139 cmd.begin(begin_info);
140 return cmd;
141}
std::vector< vk::CommandBuffer > m_compute_allocated_buffers

References m_compute_allocated_buffers, m_compute_command_pool, and m_device.