|
|
|
@ -199,14 +199,14 @@ void Scheduler::WorkerThread(std::stop_token stop_token) { |
|
|
|
} |
|
|
|
|
|
|
|
void Scheduler::AllocateWorkerCommandBuffer() { |
|
|
|
current_cmdbuf = vk::CommandBuffer(command_pool->Commit(), device.GetDispatchLoader()); |
|
|
|
current_cmdbuf = command_pool->Commit(); |
|
|
|
current_cmdbuf.Begin({ |
|
|
|
.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, |
|
|
|
.pNext = nullptr, |
|
|
|
.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT, |
|
|
|
.pInheritanceInfo = nullptr, |
|
|
|
}); |
|
|
|
current_upload_cmdbuf = vk::CommandBuffer(command_pool->Commit(), device.GetDispatchLoader()); |
|
|
|
current_upload_cmdbuf = command_pool->Commit(); |
|
|
|
current_upload_cmdbuf.Begin({ |
|
|
|
.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, |
|
|
|
.pNext = nullptr, |
|
|
|
|