diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index be5a7c1..fb3d768 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -15908,13 +15908,22 @@ namespace std , value( std::move( v ) ) {} + std::tuple>> asTuple() + { + return std::make_tuple( result, std::move( value ) ); + } + Result result; std::vector> value; +# if !defined(VULKAN_HPP_DISABLE_IMPLICIT_RESULT_VALUE_CAST) + VULKAN_HPP_DEPRECATED( + "Implicit-cast operators on vk::ResultValue are deprecated. Explicitly access the value as member of ResultValue." ) operator std::tuple> &>() VULKAN_HPP_NOEXCEPT { return std::tuple> &>( result, value ); } +# endif }; #endif diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index d002fe1..decec63 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -17677,13 +17677,22 @@ namespace VULKAN_HPP_NAMESPACE , value( std::move( v ) ) {} + std::tuple>> asTuple() + { + return std::make_tuple( result, std::move( value ) ); + } + Result result; std::vector> value; +# if !defined( VULKAN_HPP_DISABLE_IMPLICIT_RESULT_VALUE_CAST ) + VULKAN_HPP_DEPRECATED( + "Implicit-cast operators on vk::ResultValue are deprecated. Explicitly access the value as member of ResultValue." ) operator std::tuple> &>() VULKAN_HPP_NOEXCEPT { return std::tuple> &>( result, value ); } +# endif }; #endif