Correct fence count
This commit is contained in:
parent
fdd9594221
commit
a56f2b2c6f
1 changed files with 2 additions and 2 deletions
|
|
@ -349,8 +349,8 @@ public:
|
||||||
VK_CHECK_RESULT(vkQueueSubmit(queue, 1, &submitInfo, waitFences[currentBuffer]));
|
VK_CHECK_RESULT(vkQueueSubmit(queue, 1, &submitInfo, waitFences[currentBuffer]));
|
||||||
|
|
||||||
// Wait until the fence has signaled, which is the case when the command buffer has actually finished execution of all it's commands
|
// Wait until the fence has signaled, which is the case when the command buffer has actually finished execution of all it's commands
|
||||||
VK_CHECK_RESULT(vkWaitForFences(device, 2, &waitFences[currentBuffer], VK_TRUE, UINT64_MAX));
|
VK_CHECK_RESULT(vkWaitForFences(device, 1, &waitFences[currentBuffer], VK_TRUE, UINT64_MAX));
|
||||||
VK_CHECK_RESULT(vkResetFences(device, 2, &waitFences[currentBuffer]));
|
VK_CHECK_RESULT(vkResetFences(device, 1, &waitFences[currentBuffer]));
|
||||||
|
|
||||||
// Present the current buffer to the swap chain
|
// Present the current buffer to the swap chain
|
||||||
// Pass the semaphore signaled by the command buffer submission from the submit info as the wait semaphore for swap chain presentation
|
// Pass the semaphore signaled by the command buffer submission from the submit info as the wait semaphore for swap chain presentation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue