You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, semaphores are created and used in vkAcquireNextImageKHR and vkQueueSubmit.
According to the standard documentation, semaphores are only needed if imageSharingMode is specified as VK_SHARING_MODE_EXCLUSIVE. When VK_SHARING_MODE_CONCURRENT is specified, though the standard does not explain, but it appears that synchronization can be performed without using any synchronization semantics such as semaphores.
So, no matter how many queue families we use, as long as we use semaphores, we only need to set imageSharingMode to VK_SHARING_MODE_EXCLUSIVE, which will also improve the performance.
Note VK_SHARING_MODE_CONCURRENT may result in lower performance access to the buffer or image than VK_SHARING_MODE_EXCLUSIVE.
The text was updated successfully, but these errors were encountered:
In most of the examples in this tutorial, this is what is written when creating a swap chain:
Also, semaphores are created and used in
vkAcquireNextImageKHR
andvkQueueSubmit
.According to the standard documentation, semaphores are only needed if
imageSharingMode
is specified asVK_SHARING_MODE_EXCLUSIVE
. WhenVK_SHARING_MODE_CONCURRENT
is specified, though the standard does not explain, but it appears that synchronization can be performed without using any synchronization semantics such as semaphores.So, no matter how many queue families we use, as long as we use semaphores, we only need to set
imageSharingMode
toVK_SHARING_MODE_EXCLUSIVE
, which will also improve the performance.The text was updated successfully, but these errors were encountered: