vk: Add the async task scheduler

This commit is contained in:
kd-11 2021-02-28 21:11:33 +03:00 committed by kd-11
parent cd6ef2958b
commit 77e312fb99
13 changed files with 292 additions and 25 deletions

View file

@ -137,7 +137,7 @@ namespace vk
src->pop_layout(cmd);
// Create event object for this transfer and queue signal op
dma_fence = std::make_unique<vk::event>(*m_device);
dma_fence = std::make_unique<vk::event>(*m_device, sync_domain::any);
dma_fence->signal(cmd, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_ACCESS_TRANSFER_WRITE_BIT);
// Set cb flag for queued dma operations