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 {};
131 alloc_info.level = vk::CommandBufferLevel::ePrimary;
132 alloc_info.commandBufferCount = 1;
133
134 vk::CommandBuffer
cmd =
m_device.allocateCommandBuffers(alloc_info).front();
136
137 vk::CommandBufferBeginInfo begin_info {};
138 begin_info.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit;
139 cmd.begin(begin_info);
141}
vk::CommandPool m_compute_command_pool
std::vector< vk::CommandBuffer > m_compute_allocated_buffers
References cmd, m_compute_allocated_buffers, m_compute_command_pool, and m_device.