From 16d78af7fe414e8b2abd210e19d03ccc89c68c24 Mon Sep 17 00:00:00 2001 From: saschawillems Date: Wed, 20 Jul 2016 19:16:09 +0200 Subject: [PATCH] Removed unused function --- base/vulkanswapchain.hpp | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/base/vulkanswapchain.hpp b/base/vulkanswapchain.hpp index c58d886a..85c1bf79 100644 --- a/base/vulkanswapchain.hpp +++ b/base/vulkanswapchain.hpp @@ -433,27 +433,6 @@ public: 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 * @@ -463,7 +442,7 @@ public: * * @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 = {}; presentInfo.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR;