From 4e1ae817dd49df2bb518f1685d99c32b77778fa2 Mon Sep 17 00:00:00 2001 From: Julian van Doorn Date: Fri, 17 Nov 2017 22:02:29 +0100 Subject: [PATCH] Fixed acquireNextImageKHR to return uint32_t in enhanced mode Used to return Result which led to having to extract Result::value from the returned object --- vulkan/vulkan.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index c1ba37d..fa9ac94 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -27385,7 +27385,7 @@ namespace VULKAN_HPP_NAMESPACE Result acquireNextImageKHR( SwapchainKHR swapchain, uint64_t timeout, Semaphore semaphore, Fence fence, uint32_t* pImageIndex ) const; #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - ResultValue acquireNextImageKHR( SwapchainKHR swapchain, uint64_t timeout, Semaphore semaphore, Fence fence ) const; + ResultValueType::type acquireNextImageKHR( SwapchainKHR swapchain, uint64_t timeout, Semaphore semaphore, Fence fence ) const; #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/ Result debugMarkerSetObjectNameEXT( const DebugMarkerObjectNameInfoEXT* pNameInfo ) const; @@ -29370,7 +29370,7 @@ namespace VULKAN_HPP_NAMESPACE return static_cast( vkAcquireNextImageKHR( m_device, static_cast( swapchain ), timeout, static_cast( semaphore ), static_cast( fence ), pImageIndex ) ); } #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - VULKAN_HPP_INLINE ResultValue Device::acquireNextImageKHR( SwapchainKHR swapchain, uint64_t timeout, Semaphore semaphore, Fence fence ) const + VULKAN_HPP_INLINE ResultValueType::type Device::acquireNextImageKHR( SwapchainKHR swapchain, uint64_t timeout, Semaphore semaphore, Fence fence ) const { uint32_t imageIndex; Result result = static_cast( vkAcquireNextImageKHR( m_device, static_cast( swapchain ), timeout, static_cast( semaphore ), static_cast( fence ), &imageIndex ) );