From 6b8bde52579676f49556293ade8285040f8f3a96 Mon Sep 17 00:00:00 2001 From: Julian van Doorn Date: Fri, 17 Nov 2017 22:04:16 +0100 Subject: [PATCH] Fixed acquireNextImage2KHR 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 3cab28a..92ef299 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -27566,7 +27566,7 @@ namespace VULKAN_HPP_NAMESPACE Result acquireNextImage2KHX( const AcquireNextImageInfoKHX* pAcquireInfo, uint32_t* pImageIndex ) const; #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - ResultValue acquireNextImage2KHX( const AcquireNextImageInfoKHX & acquireInfo ) const; + ResultValueType::type acquireNextImage2KHX( const AcquireNextImageInfoKHX & acquireInfo ) const; #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/ Result createDescriptorUpdateTemplateKHR( const DescriptorUpdateTemplateCreateInfoKHR* pCreateInfo, const AllocationCallbacks* pAllocator, DescriptorUpdateTemplateKHR* pDescriptorUpdateTemplate ) const; @@ -29807,7 +29807,7 @@ namespace VULKAN_HPP_NAMESPACE return static_cast( vkAcquireNextImage2KHX( m_device, reinterpret_cast( pAcquireInfo ), pImageIndex ) ); } #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - VULKAN_HPP_INLINE ResultValue Device::acquireNextImage2KHX( const AcquireNextImageInfoKHX & acquireInfo ) const + VULKAN_HPP_INLINE ResultValueType::type Device::acquireNextImage2KHX( const AcquireNextImageInfoKHX & acquireInfo ) const { uint32_t imageIndex; Result result = static_cast( vkAcquireNextImage2KHX( m_device, reinterpret_cast( &acquireInfo ), &imageIndex ) );