Compare commits
No commits in common. "master" and "v0.3" have entirely different histories.
13
src/vk.cpp
13
src/vk.cpp
|
@ -1065,17 +1065,4 @@ void Vulkan::renderFrame()
|
||||||
}
|
}
|
||||||
|
|
||||||
currentFrame = (currentFrame + 1) % surface.imageCount;
|
currentFrame = (currentFrame + 1) % surface.imageCount;
|
||||||
|
|
||||||
VkPresentInfoKHR presentInfo{};
|
|
||||||
presentInfo.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR;
|
|
||||||
presentInfo.waitSemaphoreCount = 1;
|
|
||||||
presentInfo.pWaitSemaphores = signalSemaphores;
|
|
||||||
presentInfo.swapchainCount = 1;
|
|
||||||
presentInfo.pSwapchains = &swapChain;
|
|
||||||
presentInfo.pImageIndices = &imageIndex;
|
|
||||||
|
|
||||||
if (vkQueuePresentKHR(queue.descriptor, &presentInfo) != VK_SUCCESS)
|
|
||||||
{
|
|
||||||
throw std::runtime_error("Unable to present swap chain image");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue