Rework synchronization for compute particles sample
Add proper cross-queue-barriers Replace fence with semaphores Fixes #649 Fixes #670 Fixes #406
This commit is contained in:
parent
9041ae3da7
commit
215b07bafa
2 changed files with 244 additions and 80 deletions
|
|
@ -759,7 +759,7 @@ public:
|
|||
VK_CHECK_RESULT(vkCreateSemaphore(device, &semaphoreCreateInfo, nullptr, &compute.semaphore));
|
||||
|
||||
// Signal the semaphore
|
||||
VkSubmitInfo submitInfo = { VK_STRUCTURE_TYPE_SUBMIT_INFO };
|
||||
VkSubmitInfo submitInfo = vks::initializers::submitInfo();
|
||||
submitInfo.signalSemaphoreCount = 1;
|
||||
submitInfo.pSignalSemaphores = &compute.semaphore;
|
||||
VK_CHECK_RESULT(vkQueueSubmit(queue, 1, &submitInfo, VK_NULL_HANDLE));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue