Removed unused function

This commit is contained in:
saschawillems 2016-07-20 19:16:09 +02:00
parent eedf4d4188
commit 16d78af7fe

View file

@ -433,27 +433,6 @@ public:
return fpAcquireNextImageKHR(device, swapChain, UINT64_MAX, presentCompleteSemaphore, (VkFence)nullptr, imageIndex); return fpAcquireNextImageKHR(device, swapChain, UINT64_MAX, presentCompleteSemaphore, (VkFence)nullptr, imageIndex);
} }
/**
* Queue an image for presentation
*
* @param queue Presentation queue for presenting the image
* @param imageIndex Index of the swapchain image to queue for presentation
*
* @note Does not wait on a semaphore
*
* @return VkResult of the queue presentation
*/
VkResult queuePresent(VkQueue queue, uint32_t imageIndex)
{
VkPresentInfoKHR presentInfo = {};
presentInfo.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR;
presentInfo.pNext = NULL;
presentInfo.swapchainCount = 1;
presentInfo.pSwapchains = &swapChain;
presentInfo.pImageIndices = &imageIndex;
return fpQueuePresentKHR(queue, &presentInfo);
}
/** /**
* Queue an image for presentation * Queue an image for presentation
* *
@ -463,7 +442,7 @@ public:
* *
* @return VkResult of the queue presentation * @return VkResult of the queue presentation
*/ */
VkResult queuePresent(VkQueue queue, uint32_t imageIndex, VkSemaphore waitSemaphore) VkResult queuePresent(VkQueue queue, uint32_t imageIndex, VkSemaphore waitSemaphore = VK_NULL_HANDLE)
{ {
VkPresentInfoKHR presentInfo = {}; VkPresentInfoKHR presentInfo = {};
presentInfo.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR; presentInfo.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR;