Details
-
Task
-
Resolution: Done
-
P3: Somewhat important
-
5.12.0
-
None
-
-
f0057f0269 (qt/qtbase/dev) f0057f0269 (qt/tqtc-qtbase/dev) e0d0905cff (qt/qtbase/6.3) e0d0905cff (qt/tqtc-qtbase/6.3) ac782945fc (qt/qtbase/6.2) ac782945fc (qt/tqtc-qtbase/6.2) 8f69c4ba5c (qt/tqtc-qtbase/5.15)
Description
According to spec:
https://www.khronos.org/registry/vulkan/specs/1.1-extensions/pdf/vkspec.pdf
VkResult vkQueuePresentKHR( VkQueue queue, const VkPresentInfoKHR* pPresentInfo);
• queue is a queue that is capable of presentation to the target surface’s platform on the same device as the image’s swapchain.
problem in your code is in line:
err = vkQueuePresentKHR(gfxQueue, &presInfo);
should be:
err = vkQueuePresentKHR(presQueue, &presInfo);
Probability that gfxQueue will not has capable to present something is very low but not equal zero.