From 7f7af1fa90a02c4c7c44dcf39f6a701d1cf3b9c5 Mon Sep 17 00:00:00 2001 From: Julian van Doorn Date: Fri, 17 Nov 2017 22:03:26 +0100 Subject: [PATCH] Fixed getSwapchainCounterEXT to return uint64_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 fa9ac94..3cab28a 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -27536,7 +27536,7 @@ namespace VULKAN_HPP_NAMESPACE Result getSwapchainCounterEXT( SwapchainKHR swapchain, SurfaceCounterFlagBitsEXT counter, uint64_t* pCounterValue ) const; #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - ResultValue getSwapchainCounterEXT( SwapchainKHR swapchain, SurfaceCounterFlagBitsEXT counter ) const; + ResultValueType::type getSwapchainCounterEXT( SwapchainKHR swapchain, SurfaceCounterFlagBitsEXT counter ) const; #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/ void getGroupPeerMemoryFeaturesKHX( uint32_t heapIndex, uint32_t localDeviceIndex, uint32_t remoteDeviceIndex, PeerMemoryFeatureFlagsKHX* pPeerMemoryFeatures ) const; @@ -29731,7 +29731,7 @@ namespace VULKAN_HPP_NAMESPACE return static_cast( vkGetSwapchainCounterEXT( m_device, static_cast( swapchain ), static_cast( counter ), pCounterValue ) ); } #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE - VULKAN_HPP_INLINE ResultValue Device::getSwapchainCounterEXT( SwapchainKHR swapchain, SurfaceCounterFlagBitsEXT counter ) const + VULKAN_HPP_INLINE ResultValueType::type Device::getSwapchainCounterEXT( SwapchainKHR swapchain, SurfaceCounterFlagBitsEXT counter ) const { uint64_t counterValue; Result result = static_cast( vkGetSwapchainCounterEXT( m_device, static_cast( swapchain ), static_cast( counter ), &counterValue ) );