diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index a296602..8ed36bc 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -3439,7 +3439,7 @@ std::string VulkanHppGenerator::generateCommandEnhanced( std::string const & std::string typenameCheck = generateTypenameCheck( returnParams, vectorParams, chainedReturnParams, definition, dataTypes, flavourFlags ); std::string nodiscard = generateNoDiscard( !returnParams.empty(), 1 < commandData.successCodes.size(), 1 < commandData.errorCodes.size() ); std::string returnType = generateReturnType( returnParams, vectorParams, flavourFlags, false, dataTypes ); - std::string decoratedReturnType = generateDecoratedReturnType( commandData, returnParams, vectorParams, flavourFlags, false, returnType ); + std::string decoratedReturnType = generateDecoratedReturnType( name, commandData, returnParams, vectorParams, flavourFlags, false, returnType ); std::string className = initialSkipCount ? stripPrefix( commandData.params[initialSkipCount - 1].type.type, "Vk" ) : ""; std::string classSeparator = commandData.handle.empty() ? "" : "::"; std::string commandName = generateCommandName( name, commandData.params, initialSkipCount, flavourFlags ); @@ -6260,7 +6260,8 @@ std::string VulkanHppGenerator::generateDebugReportObjectType( std::string const return ( valueIt == enumIt->second.values.end() ) ? "eUnknown" : generateEnumValueName( enumIt->first, valueIt->name, false ); } -std::string VulkanHppGenerator::generateDecoratedReturnType( CommandData const & commandData, +std::string VulkanHppGenerator::generateDecoratedReturnType( std::string const & name, + CommandData const & commandData, std::vector const & returnParams, std::map const & vectorParams, CommandFlavourFlags flavourFlags, @@ -6302,7 +6303,9 @@ std::string VulkanHppGenerator::generateDecoratedReturnType( CommandData const & { assert( commandData.returnType == "VkResult" ); assert( !commandData.successCodes.empty() && ( commandData.successCodes[0] == "VK_SUCCESS" ) ); - if ( ( 1 < commandData.successCodes.size() ) && ( ( returnParams.size() == 1 ) || ( ( returnParams.size() == 2 ) && vectorParams.empty() ) ) ) + // special handling for vkGetDeviceFaultInfoEXT, as it is an atypical enumeration function + if ( ( 1 < commandData.successCodes.size() ) && ( ( returnParams.size() == 1 ) || ( ( returnParams.size() == 2 ) && vectorParams.empty() ) ) && + ( name != "vkGetDeviceFaultInfoEXT" ) ) { assert( !commandData.errorCodes.empty() ); decoratedReturnType = ( raii ? "std::pair"; @@ -8664,7 +8667,7 @@ std::string VulkanHppGenerator::generateRAIIHandleCommandEnhanced( std::string c needsVectorSizeCheck( commandData.params, vectorParams, returnParams, singularParams, skippedParams ); std::string noexceptString = generateNoExcept( commandData.errorCodes, returnParams, vectorParams, flavourFlags, vectorSizeCheck.first, true ); std::string returnType = generateReturnType( returnParams, vectorParams, flavourFlags, true, dataTypes ); - std::string decoratedReturnType = generateDecoratedReturnType( commandData, returnParams, vectorParams, flavourFlags, true, returnType ); + std::string decoratedReturnType = generateDecoratedReturnType( name, commandData, returnParams, vectorParams, flavourFlags, true, returnType ); if ( definition ) { @@ -9956,7 +9959,7 @@ std::string VulkanHppGenerator::generateReturnStatement( std::string const & com std::string returnStatement; if ( commandData.returnType.starts_with( "Vk" ) ) { - if ( ( commandData.successCodes.size() == 1 ) || enumerating ) + if ( ( commandData.successCodes.size() == 1 ) || enumerating || ( commandName == "vkGetDeviceFaultInfoEXT") ) { assert( commandData.successCodes[0] == "VK_SUCCESS" ); if ( raii || commandData.errorCodes.empty() ) @@ -9991,7 +9994,7 @@ std::string VulkanHppGenerator::generateReturnStatement( std::string const & com } else { - returnStatement = "return createResultValueType( result, " + returnVariable + " );"; + returnStatement = "return createResultValueType( result, std::move( " + returnVariable + " ) );"; } } } @@ -10021,8 +10024,8 @@ std::string VulkanHppGenerator::generateReturnStatement( std::string const & com else { assert( decoratedReturnType.starts_with( raii ? "std::pair" ) ); - returnStatement = - "return " + ( raii ? "std::make_pair" : decoratedReturnType ) + "( static_cast( result ), std::move( " + returnVariable + " ) );"; + returnStatement = "return " + ( raii ? "std::make_pair" : decoratedReturnType ) + "( static_cast( result ), std::move( " + + returnVariable + " ) );"; } } } @@ -10971,7 +10974,7 @@ std::string VulkanHppGenerator::generateStructure( std::pair const & templatedParams, bool singular ) const; std::string generateDebugReportObjectType( std::string const & objectType ) const; - std::string generateDecoratedReturnType( CommandData const & commandData, + std::string generateDecoratedReturnType( std::string const & name, + CommandData const & commandData, std::vector const & returnParams, std::map const & vectorParams, CommandFlavourFlags flavourFlags, diff --git a/vulkan/vulkan_funcs.hpp b/vulkan/vulkan_funcs.hpp index bb3d713..e1995ab 100644 --- a/vulkan/vulkan_funcs.hpp +++ b/vulkan/vulkan_funcs.hpp @@ -46,7 +46,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &instance ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::createInstance" ); - return createResultValueType( result, instance ); + return createResultValueType( result, std::move( instance ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -131,7 +131,7 @@ namespace VULKAN_HPP_NAMESPACE { physicalDevices.resize( physicalDeviceCount ); } - return createResultValueType( result, physicalDevices ); + return createResultValueType( result, std::move( physicalDevices ) ); } template ( &imageFormatProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties" ); - return createResultValueType( result, imageFormatProperties ); + return createResultValueType( result, std::move( imageFormatProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -455,7 +455,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &device ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::createDevice" ); - return createResultValueType( result, device ); + return createResultValueType( result, std::move( device ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -545,7 +545,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -582,7 +582,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -627,7 +627,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -664,7 +664,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -706,7 +706,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template ( &memory ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateMemory" ); - return createResultValueType( result, memory ); + return createResultValueType( result, std::move( memory ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -1070,7 +1070,7 @@ namespace VULKAN_HPP_NAMESPACE &pData ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mapMemory" ); - return createResultValueType( result, pData ); + return createResultValueType( result, std::move( pData ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -1522,7 +1522,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &fence ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createFence" ); - return createResultValueType( result, fence ); + return createResultValueType( result, std::move( fence ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -1719,7 +1719,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &semaphore ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSemaphore" ); - return createResultValueType( result, semaphore ); + return createResultValueType( result, std::move( semaphore ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -1831,7 +1831,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &event ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createEvent" ); - return createResultValueType( result, event ); + return createResultValueType( result, std::move( event ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -2014,7 +2014,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &queryPool ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createQueryPool" ); - return createResultValueType( result, queryPool ); + return createResultValueType( result, std::move( queryPool ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -2209,7 +2209,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &buffer ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBuffer" ); - return createResultValueType( result, buffer ); + return createResultValueType( result, std::move( buffer ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -2321,7 +2321,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &view ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBufferView" ); - return createResultValueType( result, view ); + return createResultValueType( result, std::move( view ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -2433,7 +2433,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &image ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createImage" ); - return createResultValueType( result, image ); + return createResultValueType( result, std::move( image ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -2578,7 +2578,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &view ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createImageView" ); - return createResultValueType( result, view ); + return createResultValueType( result, std::move( view ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -2692,7 +2692,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &shaderModule ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderModule" ); - return createResultValueType( result, shaderModule ); + return createResultValueType( result, std::move( shaderModule ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -2806,7 +2806,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &pipelineCache ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineCache" ); - return createResultValueType( result, pipelineCache ); + return createResultValueType( result, std::move( pipelineCache ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -2927,7 +2927,7 @@ namespace VULKAN_HPP_NAMESPACE { data.resize( dataSize ); } - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template ( &pipelineLayout ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineLayout" ); - return createResultValueType( result, pipelineLayout ); + return createResultValueType( result, std::move( pipelineLayout ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3609,7 +3609,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &sampler ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSampler" ); - return createResultValueType( result, sampler ); + return createResultValueType( result, std::move( sampler ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3721,7 +3721,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &setLayout ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorSetLayout" ); - return createResultValueType( result, setLayout ); + return createResultValueType( result, std::move( setLayout ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3839,7 +3839,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &descriptorPool ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorPool" ); - return createResultValueType( result, descriptorPool ); + return createResultValueType( result, std::move( descriptorPool ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3970,7 +3970,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast( &allocateInfo ), reinterpret_cast( descriptorSets.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSets" ); - return createResultValueType( result, descriptorSets ); + return createResultValueType( result, std::move( descriptorSets ) ); } template ( &allocateInfo ), reinterpret_cast( descriptorSets.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSets" ); - return createResultValueType( result, descriptorSets ); + return createResultValueType( result, std::move( descriptorSets ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -4173,7 +4173,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &framebuffer ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createFramebuffer" ); - return createResultValueType( result, framebuffer ); + return createResultValueType( result, std::move( framebuffer ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -4287,7 +4287,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &renderPass ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass" ); - return createResultValueType( result, renderPass ); + return createResultValueType( result, std::move( renderPass ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -4427,7 +4427,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &commandPool ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCommandPool" ); - return createResultValueType( result, commandPool ); + return createResultValueType( result, std::move( commandPool ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -4560,7 +4560,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast( &allocateInfo ), reinterpret_cast( commandBuffers.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffers" ); - return createResultValueType( result, commandBuffers ); + return createResultValueType( result, std::move( commandBuffers ) ); } template ( &allocateInfo ), reinterpret_cast( commandBuffers.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffers" ); - return createResultValueType( result, commandBuffers ); + return createResultValueType( result, std::move( commandBuffers ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -5742,7 +5742,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE::Result result = static_cast( d.vkEnumerateInstanceVersion( &apiVersion ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::enumerateInstanceVersion" ); - return createResultValueType( result, apiVersion ); + return createResultValueType( result, std::move( apiVersion ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -5893,7 +5893,7 @@ namespace VULKAN_HPP_NAMESPACE { physicalDeviceGroupProperties.resize( physicalDeviceGroupCount ); } - return createResultValueType( result, physicalDeviceGroupProperties ); + return createResultValueType( result, std::move( physicalDeviceGroupProperties ) ); } template ( &imageFormatProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2" ); - return createResultValueType( result, imageFormatProperties ); + return createResultValueType( result, std::move( imageFormatProperties ) ); } template @@ -6287,7 +6287,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &imageFormatProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2" ); - return createResultValueType( result, structureChain ); + return createResultValueType( result, std::move( structureChain ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -6620,7 +6620,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &ycbcrConversion ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSamplerYcbcrConversion" ); - return createResultValueType( result, ycbcrConversion ); + return createResultValueType( result, std::move( ycbcrConversion ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -6743,7 +6743,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &descriptorUpdateTemplate ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorUpdateTemplate" ); - return createResultValueType( result, descriptorUpdateTemplate ); + return createResultValueType( result, std::move( descriptorUpdateTemplate ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -7080,7 +7080,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &renderPass ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass2" ); - return createResultValueType( result, renderPass ); + return createResultValueType( result, std::move( renderPass ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -7215,7 +7215,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( d.vkGetSemaphoreCounterValue( m_device, static_cast( semaphore ), &value ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreCounterValue" ); - return createResultValueType( result, value ); + return createResultValueType( result, std::move( value ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7391,7 +7391,7 @@ namespace VULKAN_HPP_NAMESPACE { toolProperties.resize( toolCount ); } - return createResultValueType( result, toolProperties ); + return createResultValueType( result, std::move( toolProperties ) ); } template < @@ -7429,7 +7429,7 @@ namespace VULKAN_HPP_NAMESPACE { toolProperties.resize( toolCount ); } - return createResultValueType( result, toolProperties ); + return createResultValueType( result, std::move( toolProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7466,7 +7466,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &privateDataSlot ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPrivateDataSlot" ); - return createResultValueType( result, privateDataSlot ); + return createResultValueType( result, std::move( privateDataSlot ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -8358,7 +8358,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, queueFamilyIndex, static_cast( surface ), reinterpret_cast( &supported ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceSupportKHR" ); - return createResultValueType( result, supported ); + return createResultValueType( result, std::move( supported ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8387,7 +8387,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, static_cast( surface ), reinterpret_cast( &surfaceCapabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilitiesKHR" ); - return createResultValueType( result, surfaceCapabilities ); + return createResultValueType( result, std::move( surfaceCapabilities ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8432,7 +8432,7 @@ namespace VULKAN_HPP_NAMESPACE { surfaceFormats.resize( surfaceFormatCount ); } - return createResultValueType( result, surfaceFormats ); + return createResultValueType( result, std::move( surfaceFormats ) ); } template ( &swapchain ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSwapchainKHR" ); - return createResultValueType( result, swapchain ); + return createResultValueType( result, std::move( swapchain ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -8710,7 +8710,7 @@ namespace VULKAN_HPP_NAMESPACE { swapchainImages.resize( swapchainImageCount ); } - return createResultValueType( result, swapchainImages ); + return createResultValueType( result, std::move( swapchainImages ) ); } template ( &deviceGroupPresentCapabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupPresentCapabilitiesKHR" ); - return createResultValueType( result, deviceGroupPresentCapabilities ); + return createResultValueType( result, std::move( deviceGroupPresentCapabilities ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8870,7 +8870,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( surface ), reinterpret_cast( &modes ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupSurfacePresentModesKHR" ); - return createResultValueType( result, modes ); + return createResultValueType( result, std::move( modes ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8916,7 +8916,7 @@ namespace VULKAN_HPP_NAMESPACE { rects.resize( rectCount ); } - return createResultValueType( result, rects ); + return createResultValueType( result, std::move( rects ) ); } template ( &mode ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::createDisplayModeKHR" ); - return createResultValueType( result, mode ); + return createResultValueType( result, std::move( mode ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -9403,7 +9403,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, static_cast( mode ), planeIndex, reinterpret_cast( &capabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneCapabilitiesKHR" ); - return createResultValueType( result, capabilities ); + return createResultValueType( result, std::move( capabilities ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9440,7 +9440,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDisplayPlaneSurfaceKHR" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -9507,7 +9507,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( swapchains.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHR" ); - return createResultValueType( result, swapchains ); + return createResultValueType( result, std::move( swapchains ) ); } template ( swapchains.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHR" ); - return createResultValueType( result, swapchains ); + return createResultValueType( result, std::move( swapchains ) ); } template @@ -9556,7 +9556,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &swapchain ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainKHR" ); - return createResultValueType( result, swapchain ); + return createResultValueType( result, std::move( swapchain ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -9686,7 +9686,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createXlibSurfaceKHR" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -9777,7 +9777,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createXcbSurfaceKHR" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -9872,7 +9872,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createWaylandSurfaceKHR" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -9964,7 +9964,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createAndroidSurfaceKHR" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -10030,7 +10030,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createWin32SurfaceKHR" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -10103,7 +10103,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &callback ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDebugReportCallbackEXT" ); - return createResultValueType( result, callback ); + return createResultValueType( result, std::move( callback ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -10368,7 +10368,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, reinterpret_cast( &videoProfile ), reinterpret_cast( &capabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoCapabilitiesKHR" ); - return createResultValueType( result, capabilities ); + return createResultValueType( result, std::move( capabilities ) ); } template @@ -10386,7 +10386,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, reinterpret_cast( &videoProfile ), reinterpret_cast( &capabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoCapabilitiesKHR" ); - return createResultValueType( result, structureChain ); + return createResultValueType( result, std::move( structureChain ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -10439,7 +10439,7 @@ namespace VULKAN_HPP_NAMESPACE { videoFormatProperties.resize( videoFormatPropertyCount ); } - return createResultValueType( result, videoFormatProperties ); + return createResultValueType( result, std::move( videoFormatProperties ) ); } template ( &videoSession ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createVideoSessionKHR" ); - return createResultValueType( result, videoSession ); + return createResultValueType( result, std::move( videoSession ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -10767,7 +10767,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &videoSessionParameters ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createVideoSessionParametersKHR" ); - return createResultValueType( result, videoSessionParameters ); + return createResultValueType( result, std::move( videoSessionParameters ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -11193,7 +11193,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &module ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCuModuleNVX" ); - return createResultValueType( result, module ); + return createResultValueType( result, std::move( module ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -11255,7 +11255,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &function ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCuFunctionNVX" ); - return createResultValueType( result, function ); + return createResultValueType( result, std::move( function ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -11461,7 +11461,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetImageViewAddressNVX( m_device, static_cast( imageView ), reinterpret_cast( &properties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageViewAddressNVX" ); - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11565,7 +11565,7 @@ namespace VULKAN_HPP_NAMESPACE { info.resize( infoSize ); } - return createResultValueType( result, info ); + return createResultValueType( result, std::move( info ) ); } template ( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createStreamDescriptorSurfaceGGP" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -11767,7 +11767,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &externalImageFormatProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getExternalImageFormatPropertiesNV" ); - return createResultValueType( result, externalImageFormatProperties ); + return createResultValueType( result, std::move( externalImageFormatProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11800,7 +11800,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetMemoryWin32HandleNV( m_device, static_cast( memory ), static_cast( handleType ), &handle ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryWin32HandleNV" ); - return createResultValueType( result, handle ); + return createResultValueType( result, std::move( handle ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_USE_PLATFORM_WIN32_KHR*/ @@ -11970,7 +11970,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &imageFormatProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2KHR" ); - return createResultValueType( result, imageFormatProperties ); + return createResultValueType( result, std::move( imageFormatProperties ) ); } template @@ -11991,7 +11991,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &imageFormatProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2KHR" ); - return createResultValueType( result, structureChain ); + return createResultValueType( result, std::move( structureChain ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -12344,7 +12344,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createViSurfaceNN" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -12429,7 +12429,7 @@ namespace VULKAN_HPP_NAMESPACE { physicalDeviceGroupProperties.resize( physicalDeviceGroupCount ); } - return createResultValueType( result, physicalDeviceGroupProperties ); + return createResultValueType( result, std::move( physicalDeviceGroupProperties ) ); } template ( &getWin32HandleInfo ), &handle ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryWin32HandleKHR" ); - return createResultValueType( result, handle ); + return createResultValueType( result, std::move( handle ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -12569,7 +12569,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &memoryWin32HandleProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryWin32HandlePropertiesKHR" ); - return createResultValueType( result, memoryWin32HandleProperties ); + return createResultValueType( result, std::move( memoryWin32HandleProperties ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_USE_PLATFORM_WIN32_KHR*/ @@ -12600,7 +12600,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( d.vkGetMemoryFdKHR( m_device, reinterpret_cast( &getFdInfo ), &fd ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryFdKHR" ); - return createResultValueType( result, fd ); + return createResultValueType( result, std::move( fd ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -12630,7 +12630,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( handleType ), fd, reinterpret_cast( &memoryFdProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryFdPropertiesKHR" ); - return createResultValueType( result, memoryFdProperties ); + return createResultValueType( result, std::move( memoryFdProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -12724,7 +12724,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetSemaphoreWin32HandleKHR( m_device, reinterpret_cast( &getWin32HandleInfo ), &handle ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreWin32HandleKHR" ); - return createResultValueType( result, handle ); + return createResultValueType( result, std::move( handle ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_USE_PLATFORM_WIN32_KHR*/ @@ -12781,7 +12781,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( d.vkGetSemaphoreFdKHR( m_device, reinterpret_cast( &getFdInfo ), &fd ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreFdKHR" ); - return createResultValueType( result, fd ); + return createResultValueType( result, std::move( fd ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -12929,7 +12929,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &descriptorUpdateTemplate ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorUpdateTemplateKHR" ); - return createResultValueType( result, descriptorUpdateTemplate ); + return createResultValueType( result, std::move( descriptorUpdateTemplate ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -13126,7 +13126,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetRandROutputDisplayEXT( m_physicalDevice, &dpy, rrOutput, reinterpret_cast( &display ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getRandROutputDisplayEXT" ); - return createResultValueType( result, display ); + return createResultValueType( result, std::move( display ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -13180,7 +13180,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, static_cast( surface ), reinterpret_cast( &surfaceCapabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2EXT" ); - return createResultValueType( result, surfaceCapabilities ); + return createResultValueType( result, std::move( surfaceCapabilities ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -13248,7 +13248,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &fence ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerEventEXT" ); - return createResultValueType( result, fence ); + return createResultValueType( result, std::move( fence ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -13314,7 +13314,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &fence ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerDisplayEventEXT" ); - return createResultValueType( result, fence ); + return createResultValueType( result, std::move( fence ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -13371,7 +13371,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetSwapchainCounterEXT( m_device, static_cast( swapchain ), static_cast( counter ), &counterValue ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainCounterEXT" ); - return createResultValueType( result, counterValue ); + return createResultValueType( result, std::move( counterValue ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -13403,7 +13403,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( swapchain ), reinterpret_cast( &displayTimingProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRefreshCycleDurationGOOGLE" ); - return createResultValueType( result, displayTimingProperties ); + return createResultValueType( result, std::move( displayTimingProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -13455,7 +13455,7 @@ namespace VULKAN_HPP_NAMESPACE { presentationTimings.resize( presentationTimingCount ); } - return createResultValueType( result, presentationTimings ); + return createResultValueType( result, std::move( presentationTimings ) ); } template < @@ -13498,7 +13498,7 @@ namespace VULKAN_HPP_NAMESPACE { presentationTimings.resize( presentationTimingCount ); } - return createResultValueType( result, presentationTimings ); + return createResultValueType( result, std::move( presentationTimings ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -13620,7 +13620,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &renderPass ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass2KHR" ); - return createResultValueType( result, renderPass ); + return createResultValueType( result, std::move( renderPass ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -13842,7 +13842,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetFenceWin32HandleKHR( m_device, reinterpret_cast( &getWin32HandleInfo ), &handle ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceWin32HandleKHR" ); - return createResultValueType( result, handle ); + return createResultValueType( result, std::move( handle ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_USE_PLATFORM_WIN32_KHR*/ @@ -13899,7 +13899,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( d.vkGetFenceFdKHR( m_device, reinterpret_cast( &getFdInfo ), &fd ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceFdKHR" ); - return createResultValueType( result, fd ); + return createResultValueType( result, std::move( fd ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -13965,7 +13965,7 @@ namespace VULKAN_HPP_NAMESPACE counters.resize( counterCount ); counterDescriptions.resize( counterCount ); } - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template ( &surfaceCapabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2KHR" ); - return createResultValueType( result, surfaceCapabilities ); + return createResultValueType( result, std::move( surfaceCapabilities ) ); } template @@ -14140,7 +14140,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surfaceCapabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2KHR" ); - return createResultValueType( result, structureChain ); + return createResultValueType( result, std::move( structureChain ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -14191,7 +14191,7 @@ namespace VULKAN_HPP_NAMESPACE { surfaceFormats.resize( surfaceFormatCount ); } - return createResultValueType( result, surfaceFormats ); + return createResultValueType( result, std::move( surfaceFormats ) ); } template @@ -14277,7 +14277,7 @@ namespace VULKAN_HPP_NAMESPACE { structureChains[i].template get() = surfaceFormats[i]; } - return createResultValueType( result, structureChains ); + return createResultValueType( result, std::move( structureChains ) ); } template () = surfaceFormats[i]; } - return createResultValueType( result, structureChains ); + return createResultValueType( result, std::move( structureChains ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -14375,7 +14375,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -14411,7 +14411,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -14456,7 +14456,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -14493,7 +14493,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -14539,7 +14539,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -14578,7 +14578,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -14611,7 +14611,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &capabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneCapabilities2KHR" ); - return createResultValueType( result, capabilities ); + return createResultValueType( result, std::move( capabilities ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -14651,7 +14651,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createIOSSurfaceMVK" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -14717,7 +14717,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createMacOSSurfaceMVK" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -14937,7 +14937,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &messenger ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDebugUtilsMessengerEXT" ); - return createResultValueType( result, messenger ); + return createResultValueType( result, std::move( messenger ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -15084,7 +15084,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetAndroidHardwareBufferPropertiesANDROID( m_device, &buffer, reinterpret_cast( &properties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAndroidHardwareBufferPropertiesANDROID" ); - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template @@ -15104,7 +15104,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetAndroidHardwareBufferPropertiesANDROID( m_device, &buffer, reinterpret_cast( &properties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAndroidHardwareBufferPropertiesANDROID" ); - return createResultValueType( result, structureChain ); + return createResultValueType( result, std::move( structureChain ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -15135,7 +15135,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetMemoryAndroidHardwareBufferANDROID( m_device, reinterpret_cast( &info ), &buffer ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryAndroidHardwareBufferANDROID" ); - return createResultValueType( result, buffer ); + return createResultValueType( result, std::move( buffer ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_USE_PLATFORM_ANDROID_KHR*/ @@ -15381,7 +15381,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( executionGraph ), reinterpret_cast( &sizeInfo ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getExecutionGraphPipelineScratchSizeAMDX" ); - return createResultValueType( result, sizeInfo ); + return createResultValueType( result, std::move( sizeInfo ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -15412,7 +15412,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( executionGraph ), reinterpret_cast( &nodeInfo ), &nodeIndex ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getExecutionGraphPipelineNodeIndexAMDX" ); - return createResultValueType( result, nodeIndex ); + return createResultValueType( result, std::move( nodeIndex ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -15747,7 +15747,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &accelerationStructure ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createAccelerationStructureKHR" ); - return createResultValueType( result, accelerationStructure ); + return createResultValueType( result, std::move( accelerationStructure ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -16137,7 +16137,7 @@ namespace VULKAN_HPP_NAMESPACE stride ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeAccelerationStructuresPropertiesKHR" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template @@ -16164,7 +16164,7 @@ namespace VULKAN_HPP_NAMESPACE stride ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeAccelerationStructuresPropertyKHR" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -16709,7 +16709,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast( data.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandlesKHR" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template @@ -16727,7 +16727,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast( &data ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandleKHR" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -16762,7 +16762,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast( data.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingCaptureReplayShaderGroupHandlesKHR" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template @@ -16780,7 +16780,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast( &data ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingCaptureReplayShaderGroupHandleKHR" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -16879,7 +16879,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &ycbcrConversion ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSamplerYcbcrConversionKHR" ); - return createResultValueType( result, ycbcrConversion ); + return createResultValueType( result, std::move( ycbcrConversion ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -17022,7 +17022,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( image ), reinterpret_cast( &properties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageDrmFormatModifierPropertiesEXT" ); - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -17061,7 +17061,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &validationCache ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createValidationCacheEXT" ); - return createResultValueType( result, validationCache ); + return createResultValueType( result, std::move( validationCache ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -17217,7 +17217,7 @@ namespace VULKAN_HPP_NAMESPACE { data.resize( dataSize ); } - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template ( &accelerationStructure ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createAccelerationStructureNV" ); - return createResultValueType( result, accelerationStructure ); + return createResultValueType( result, std::move( accelerationStructure ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -17866,7 +17866,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast( data.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandlesNV" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template @@ -17884,7 +17884,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast( &data ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandleNV" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -17915,7 +17915,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( accelerationStructure ), data.size() * sizeof( DataType ), reinterpret_cast( data.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureHandleNV" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template @@ -17932,7 +17932,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( accelerationStructure ), sizeof( DataType ), reinterpret_cast( &data ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureHandleNV" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -18131,7 +18131,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &memoryHostPointerProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryHostPointerPropertiesEXT" ); - return createResultValueType( result, memoryHostPointerProperties ); + return createResultValueType( result, std::move( memoryHostPointerProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -18194,7 +18194,7 @@ namespace VULKAN_HPP_NAMESPACE { timeDomains.resize( timeDomainCount ); } - return createResultValueType( result, timeDomains ); + return createResultValueType( result, std::move( timeDomains ) ); } template ( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsEXT" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template ( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsEXT" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template @@ -18309,7 +18309,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetCalibratedTimestampsEXT( m_device, 1, reinterpret_cast( ×tampInfo ), ×tamp, &maxDeviation ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampEXT" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -18515,7 +18515,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( d.vkGetSemaphoreCounterValueKHR( m_device, static_cast( semaphore ), &value ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreCounterValueKHR" ); - return createResultValueType( result, value ); + return createResultValueType( result, std::move( value ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -18718,7 +18718,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &configuration ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquirePerformanceConfigurationINTEL" ); - return createResultValueType( result, configuration ); + return createResultValueType( result, std::move( configuration ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -18849,7 +18849,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( parameter ), reinterpret_cast( &value ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPerformanceParameterINTEL" ); - return createResultValueType( result, value ); + return createResultValueType( result, std::move( value ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -18901,7 +18901,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createImagePipeSurfaceFUCHSIA" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -18967,7 +18967,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createMetalSurfaceEXT" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -19042,7 +19042,7 @@ namespace VULKAN_HPP_NAMESPACE { fragmentShadingRates.resize( fragmentShadingRateCount ); } - return createResultValueType( result, fragmentShadingRates ); + return createResultValueType( result, std::move( fragmentShadingRates ) ); } template ( &surfaceInfo ), reinterpret_cast( &modes ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupSurfacePresentModes2EXT" ); - return createResultValueType( result, modes ); + return createResultValueType( result, std::move( modes ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_USE_PLATFORM_WIN32_KHR*/ @@ -19690,7 +19690,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createHeadlessSurfaceEXT" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -20033,7 +20033,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &deferredOperation ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDeferredOperationKHR" ); - return createResultValueType( result, deferredOperation ); + return createResultValueType( result, std::move( deferredOperation ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -20226,7 +20226,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( executableCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template ( d.vkMapMemory2KHR( m_device, reinterpret_cast( &memoryMapInfo ), &pData ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mapMemory2KHR" ); - return createResultValueType( result, pData ); + return createResultValueType( result, std::move( pData ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -20862,7 +20862,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &indirectCommandsLayout ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createIndirectCommandsLayoutNV" ); - return createResultValueType( result, indirectCommandsLayout ); + return createResultValueType( result, std::move( indirectCommandsLayout ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -21026,7 +21026,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( d.vkGetDrmDisplayEXT( m_physicalDevice, drmFd, connectorId, reinterpret_cast( &display ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDrmDisplayEXT" ); - return createResultValueType( result, display ); + return createResultValueType( result, std::move( display ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -21085,7 +21085,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &privateDataSlot ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPrivateDataSlotEXT" ); - return createResultValueType( result, privateDataSlot ); + return createResultValueType( result, std::move( privateDataSlot ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -21238,7 +21238,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &qualityLevelProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR" ); - return createResultValueType( result, qualityLevelProperties ); + return createResultValueType( result, std::move( qualityLevelProperties ) ); } template @@ -21261,7 +21261,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &qualityLevelProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR" ); - return createResultValueType( result, structureChain ); + return createResultValueType( result, std::move( structureChain ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -21320,7 +21320,7 @@ namespace VULKAN_HPP_NAMESPACE } while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getEncodedVideoSessionParametersKHR" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template @@ -21405,7 +21405,7 @@ namespace VULKAN_HPP_NAMESPACE } while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getEncodedVideoSessionParametersKHR" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template ( &module ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCudaModuleNV" ); - return createResultValueType( result, module ); + return createResultValueType( result, std::move( module ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -21583,7 +21583,7 @@ namespace VULKAN_HPP_NAMESPACE { cacheData.resize( cacheSize ); } - return createResultValueType( result, cacheData ); + return createResultValueType( result, std::move( cacheData ) ); } template ( &function ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCudaFunctionNV" ); - return createResultValueType( result, function ); + return createResultValueType( result, std::move( function ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -22267,7 +22267,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetBufferOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast( &info ), &data ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getBufferOpaqueCaptureDescriptorDataEXT" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -22296,7 +22296,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetImageOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast( &info ), &data ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageOpaqueCaptureDescriptorDataEXT" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -22325,7 +22325,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetImageViewOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast( &info ), &data ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageViewOpaqueCaptureDescriptorDataEXT" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -22354,7 +22354,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetSamplerOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast( &info ), &data ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSamplerOpaqueCaptureDescriptorDataEXT" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -22384,7 +22384,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast( &info ), &data ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureOpaqueCaptureDescriptorDataEXT" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -22588,8 +22588,9 @@ namespace VULKAN_HPP_NAMESPACE #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE template - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue> - Device::getFaultInfoEXT( Dispatch const & d ) const + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE + typename ResultValueType>::type + Device::getFaultInfoEXT( Dispatch const & d ) const { VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) @@ -22630,8 +22631,7 @@ namespace VULKAN_HPP_NAMESPACE resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFaultInfoEXT", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::eIncomplete } ); - return ResultValue>( - static_cast( result ), std::move( data_ ) ); + return createResultValueType( result, std::move( data_ ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -22688,7 +22688,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( d.vkGetWinrtDisplayNV( m_physicalDevice, deviceRelativeId, reinterpret_cast( &display ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getWinrtDisplayNV" ); - return createResultValueType( result, display ); + return createResultValueType( result, std::move( display ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -22749,7 +22749,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDirectFBSurfaceEXT" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -22871,7 +22871,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetMemoryZirconHandleFUCHSIA( m_device, reinterpret_cast( &getZirconHandleInfo ), &zirconHandle ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryZirconHandleFUCHSIA" ); - return createResultValueType( result, zirconHandle ); + return createResultValueType( result, std::move( zirconHandle ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -22911,7 +22911,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &memoryZirconHandleProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryZirconHandlePropertiesFUCHSIA" ); - return createResultValueType( result, memoryZirconHandleProperties ); + return createResultValueType( result, std::move( memoryZirconHandleProperties ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_USE_PLATFORM_FUCHSIA*/ @@ -22973,7 +22973,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetSemaphoreZirconHandleFUCHSIA( m_device, reinterpret_cast( &getZirconHandleInfo ), &zirconHandle ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreZirconHandleFUCHSIA" ); - return createResultValueType( result, zirconHandle ); + return createResultValueType( result, std::move( zirconHandle ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_USE_PLATFORM_FUCHSIA*/ @@ -23015,7 +23015,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &collection ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBufferCollectionFUCHSIA" ); - return createResultValueType( result, collection ); + return createResultValueType( result, std::move( collection ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -23191,7 +23191,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( collection ), reinterpret_cast( &properties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getBufferCollectionPropertiesFUCHSIA" ); - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_USE_PLATFORM_FUCHSIA*/ @@ -23276,7 +23276,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast( &memoryGetRemoteAddressInfo ), reinterpret_cast( &address ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryRemoteAddressNV" ); - return createResultValueType( result, address ); + return createResultValueType( result, std::move( address ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -23307,7 +23307,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast( &pipelineInfo ), reinterpret_cast( &pipelineProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelinePropertiesEXT" ); - return createResultValueType( result, pipelineProperties ); + return createResultValueType( result, std::move( pipelineProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -23386,7 +23386,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createScreenSurfaceQNX" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -23585,7 +23585,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( µmap ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createMicromapEXT" ); - return createResultValueType( result, micromap ); + return createResultValueType( result, std::move( micromap ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -23857,7 +23857,7 @@ namespace VULKAN_HPP_NAMESPACE stride ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeMicromapsPropertiesEXT" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template @@ -23883,7 +23883,7 @@ namespace VULKAN_HPP_NAMESPACE stride ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeMicromapsPropertyEXT" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -24992,7 +24992,7 @@ namespace VULKAN_HPP_NAMESPACE { imageFormatProperties.resize( formatCount ); } - return createResultValueType( result, imageFormatProperties ); + return createResultValueType( result, std::move( imageFormatProperties ) ); } template ( &session ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createOpticalFlowSessionNV" ); - return createResultValueType( result, session ); + return createResultValueType( result, std::move( session ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -25407,7 +25407,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( shaders.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXT" ); - return createResultValueType( result, shaders ); + return createResultValueType( result, std::move( shaders ) ); } template ( shaders.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXT" ); - return createResultValueType( result, shaders ); + return createResultValueType( result, std::move( shaders ) ); } template @@ -25456,7 +25456,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &shader ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderEXT" ); - return createResultValueType( result, shader ); + return createResultValueType( result, std::move( shader ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -25639,7 +25639,7 @@ namespace VULKAN_HPP_NAMESPACE { data.resize( dataSize ); } - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template ( &properties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getScreenBufferPropertiesQNX" ); - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template @@ -26095,7 +26095,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetScreenBufferPropertiesQNX( m_device, &buffer, reinterpret_cast( &properties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getScreenBufferPropertiesQNX" ); - return createResultValueType( result, structureChain ); + return createResultValueType( result, std::move( structureChain ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_USE_PLATFORM_SCREEN_QNX*/ @@ -26152,7 +26152,7 @@ namespace VULKAN_HPP_NAMESPACE { timeDomains.resize( timeDomainCount ); } - return createResultValueType( result, timeDomains ); + return createResultValueType( result, std::move( timeDomains ) ); } template ( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsKHR" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template ( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsKHR" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template @@ -26267,7 +26267,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetCalibratedTimestampsKHR( m_device, 1, reinterpret_cast( ×tampInfo ), ×tamp, &maxDeviation ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampKHR" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ diff --git a/vulkan/vulkan_handles.hpp b/vulkan/vulkan_handles.hpp index e6b1481..0c841e0 100644 --- a/vulkan/vulkan_handles.hpp +++ b/vulkan/vulkan_handles.hpp @@ -13167,8 +13167,8 @@ namespace VULKAN_HPP_NAMESPACE Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT; #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE template - VULKAN_HPP_NODISCARD ResultValue> - getFaultInfoEXT( Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; + VULKAN_HPP_NODISCARD typename ResultValueType>::type + getFaultInfoEXT( Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const; #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #if defined( VK_USE_PLATFORM_FUCHSIA ) diff --git a/vulkan/vulkan_raii.hpp b/vulkan/vulkan_raii.hpp index c7b74fa..52236e8 100644 --- a/vulkan/vulkan_raii.hpp +++ b/vulkan/vulkan_raii.hpp @@ -4413,9 +4413,7 @@ namespace VULKAN_HPP_NAMESPACE //=== VK_EXT_device_fault === - VULKAN_HPP_NODISCARD - std::pair> - getFaultInfoEXT() const; + VULKAN_HPP_NODISCARD std::pair getFaultInfoEXT() const; # if defined( VK_USE_PLATFORM_FUCHSIA ) //=== VK_FUCHSIA_external_memory === @@ -21047,9 +21045,8 @@ namespace VULKAN_HPP_NAMESPACE //=== VK_EXT_device_fault === - VULKAN_HPP_NODISCARD - VULKAN_HPP_INLINE std::pair> - Device::getFaultInfoEXT() const + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::pair + Device::getFaultInfoEXT() const { VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceFaultInfoEXT && "Function requires " ); @@ -21088,7 +21085,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::getFaultInfoEXT", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::eIncomplete } ); - return std::make_pair( static_cast( result ), std::move( data_ ) ); + return data_; } # if defined( VK_USE_PLATFORM_WIN32_KHR ) diff --git a/vulkan/vulkansc_funcs.hpp b/vulkan/vulkansc_funcs.hpp index 0aea24a..5c08f33 100644 --- a/vulkan/vulkansc_funcs.hpp +++ b/vulkan/vulkansc_funcs.hpp @@ -46,7 +46,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &instance ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::createInstance" ); - return createResultValueType( result, instance ); + return createResultValueType( result, std::move( instance ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -131,7 +131,7 @@ namespace VULKAN_HPP_NAMESPACE { physicalDevices.resize( physicalDeviceCount ); } - return createResultValueType( result, physicalDevices ); + return createResultValueType( result, std::move( physicalDevices ) ); } template ( &imageFormatProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties" ); - return createResultValueType( result, imageFormatProperties ); + return createResultValueType( result, std::move( imageFormatProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -455,7 +455,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &device ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::createDevice" ); - return createResultValueType( result, device ); + return createResultValueType( result, std::move( device ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -545,7 +545,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -582,7 +582,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -627,7 +627,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -664,7 +664,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -706,7 +706,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template ( &memory ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateMemory" ); - return createResultValueType( result, memory ); + return createResultValueType( result, std::move( memory ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -1002,7 +1002,7 @@ namespace VULKAN_HPP_NAMESPACE &pData ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mapMemory" ); - return createResultValueType( result, pData ); + return createResultValueType( result, std::move( pData ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -1237,7 +1237,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &fence ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createFence" ); - return createResultValueType( result, fence ); + return createResultValueType( result, std::move( fence ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -1434,7 +1434,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &semaphore ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSemaphore" ); - return createResultValueType( result, semaphore ); + return createResultValueType( result, std::move( semaphore ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -1546,7 +1546,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &event ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createEvent" ); - return createResultValueType( result, event ); + return createResultValueType( result, std::move( event ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -1729,7 +1729,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &queryPool ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createQueryPool" ); - return createResultValueType( result, queryPool ); + return createResultValueType( result, std::move( queryPool ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -1872,7 +1872,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &buffer ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBuffer" ); - return createResultValueType( result, buffer ); + return createResultValueType( result, std::move( buffer ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -1984,7 +1984,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &view ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBufferView" ); - return createResultValueType( result, view ); + return createResultValueType( result, std::move( view ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -2096,7 +2096,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &image ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createImage" ); - return createResultValueType( result, image ); + return createResultValueType( result, std::move( image ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -2241,7 +2241,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &view ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createImageView" ); - return createResultValueType( result, view ); + return createResultValueType( result, std::move( view ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -2355,7 +2355,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &pipelineCache ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineCache" ); - return createResultValueType( result, pipelineCache ); + return createResultValueType( result, std::move( pipelineCache ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -2937,7 +2937,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &pipelineLayout ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineLayout" ); - return createResultValueType( result, pipelineLayout ); + return createResultValueType( result, std::move( pipelineLayout ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3049,7 +3049,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &sampler ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSampler" ); - return createResultValueType( result, sampler ); + return createResultValueType( result, std::move( sampler ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3161,7 +3161,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &setLayout ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorSetLayout" ); - return createResultValueType( result, setLayout ); + return createResultValueType( result, std::move( setLayout ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3279,7 +3279,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &descriptorPool ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorPool" ); - return createResultValueType( result, descriptorPool ); + return createResultValueType( result, std::move( descriptorPool ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3358,7 +3358,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast( &allocateInfo ), reinterpret_cast( descriptorSets.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSets" ); - return createResultValueType( result, descriptorSets ); + return createResultValueType( result, std::move( descriptorSets ) ); } template ( &allocateInfo ), reinterpret_cast( descriptorSets.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSets" ); - return createResultValueType( result, descriptorSets ); + return createResultValueType( result, std::move( descriptorSets ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3561,7 +3561,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &framebuffer ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createFramebuffer" ); - return createResultValueType( result, framebuffer ); + return createResultValueType( result, std::move( framebuffer ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3675,7 +3675,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &renderPass ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass" ); - return createResultValueType( result, renderPass ); + return createResultValueType( result, std::move( renderPass ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3815,7 +3815,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &commandPool ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCommandPool" ); - return createResultValueType( result, commandPool ); + return createResultValueType( result, std::move( commandPool ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3896,7 +3896,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast( &allocateInfo ), reinterpret_cast( commandBuffers.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffers" ); - return createResultValueType( result, commandBuffers ); + return createResultValueType( result, std::move( commandBuffers ) ); } template ( &allocateInfo ), reinterpret_cast( commandBuffers.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffers" ); - return createResultValueType( result, commandBuffers ); + return createResultValueType( result, std::move( commandBuffers ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -5078,7 +5078,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE::Result result = static_cast( d.vkEnumerateInstanceVersion( &apiVersion ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::enumerateInstanceVersion" ); - return createResultValueType( result, apiVersion ); + return createResultValueType( result, std::move( apiVersion ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -5229,7 +5229,7 @@ namespace VULKAN_HPP_NAMESPACE { physicalDeviceGroupProperties.resize( physicalDeviceGroupCount ); } - return createResultValueType( result, physicalDeviceGroupProperties ); + return createResultValueType( result, std::move( physicalDeviceGroupProperties ) ); } template ( &imageFormatProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2" ); - return createResultValueType( result, imageFormatProperties ); + return createResultValueType( result, std::move( imageFormatProperties ) ); } template @@ -5545,7 +5545,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &imageFormatProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2" ); - return createResultValueType( result, structureChain ); + return createResultValueType( result, std::move( structureChain ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -5792,7 +5792,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &ycbcrConversion ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSamplerYcbcrConversion" ); - return createResultValueType( result, ycbcrConversion ); + return createResultValueType( result, std::move( ycbcrConversion ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -6097,7 +6097,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &renderPass ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass2" ); - return createResultValueType( result, renderPass ); + return createResultValueType( result, std::move( renderPass ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -6232,7 +6232,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( d.vkGetSemaphoreCounterValue( m_device, static_cast( semaphore ), &value ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreCounterValue" ); - return createResultValueType( result, value ); + return createResultValueType( result, std::move( value ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -6408,7 +6408,7 @@ namespace VULKAN_HPP_NAMESPACE { toolProperties.resize( toolCount ); } - return createResultValueType( result, toolProperties ); + return createResultValueType( result, std::move( toolProperties ) ); } template < @@ -6446,7 +6446,7 @@ namespace VULKAN_HPP_NAMESPACE { toolProperties.resize( toolCount ); } - return createResultValueType( result, toolProperties ); + return createResultValueType( result, std::move( toolProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -6483,7 +6483,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &privateDataSlot ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPrivateDataSlot" ); - return createResultValueType( result, privateDataSlot ); + return createResultValueType( result, std::move( privateDataSlot ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -7377,7 +7377,7 @@ namespace VULKAN_HPP_NAMESPACE } while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFaultData" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template ( surface ), reinterpret_cast( &supported ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceSupportKHR" ); - return createResultValueType( result, supported ); + return createResultValueType( result, std::move( supported ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7527,7 +7527,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, static_cast( surface ), reinterpret_cast( &surfaceCapabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilitiesKHR" ); - return createResultValueType( result, surfaceCapabilities ); + return createResultValueType( result, std::move( surfaceCapabilities ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7572,7 +7572,7 @@ namespace VULKAN_HPP_NAMESPACE { surfaceFormats.resize( surfaceFormatCount ); } - return createResultValueType( result, surfaceFormats ); + return createResultValueType( result, std::move( surfaceFormats ) ); } template ( &swapchain ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSwapchainKHR" ); - return createResultValueType( result, swapchain ); + return createResultValueType( result, std::move( swapchain ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -7798,7 +7798,7 @@ namespace VULKAN_HPP_NAMESPACE { swapchainImages.resize( swapchainImageCount ); } - return createResultValueType( result, swapchainImages ); + return createResultValueType( result, std::move( swapchainImages ) ); } template ( &deviceGroupPresentCapabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupPresentCapabilitiesKHR" ); - return createResultValueType( result, deviceGroupPresentCapabilities ); + return createResultValueType( result, std::move( deviceGroupPresentCapabilities ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -7958,7 +7958,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( surface ), reinterpret_cast( &modes ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupSurfacePresentModesKHR" ); - return createResultValueType( result, modes ); + return createResultValueType( result, std::move( modes ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8004,7 +8004,7 @@ namespace VULKAN_HPP_NAMESPACE { rects.resize( rectCount ); } - return createResultValueType( result, rects ); + return createResultValueType( result, std::move( rects ) ); } template ( &mode ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::createDisplayModeKHR" ); - return createResultValueType( result, mode ); + return createResultValueType( result, std::move( mode ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -8491,7 +8491,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, static_cast( mode ), planeIndex, reinterpret_cast( &capabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneCapabilitiesKHR" ); - return createResultValueType( result, capabilities ); + return createResultValueType( result, std::move( capabilities ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8528,7 +8528,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDisplayPlaneSurfaceKHR" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -8595,7 +8595,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( swapchains.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHR" ); - return createResultValueType( result, swapchains ); + return createResultValueType( result, std::move( swapchains ) ); } template ( swapchains.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHR" ); - return createResultValueType( result, swapchains ); + return createResultValueType( result, std::move( swapchains ) ); } template @@ -8644,7 +8644,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &swapchain ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainKHR" ); - return createResultValueType( result, swapchain ); + return createResultValueType( result, std::move( swapchain ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -8764,7 +8764,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( d.vkGetMemoryFdKHR( m_device, reinterpret_cast( &getFdInfo ), &fd ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryFdKHR" ); - return createResultValueType( result, fd ); + return createResultValueType( result, std::move( fd ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8794,7 +8794,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( handleType ), fd, reinterpret_cast( &memoryFdProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryFdPropertiesKHR" ); - return createResultValueType( result, memoryFdProperties ); + return createResultValueType( result, std::move( memoryFdProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8850,7 +8850,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( d.vkGetSemaphoreFdKHR( m_device, reinterpret_cast( &getFdInfo ), &fd ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreFdKHR" ); - return createResultValueType( result, fd ); + return createResultValueType( result, std::move( fd ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8905,7 +8905,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, static_cast( surface ), reinterpret_cast( &surfaceCapabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2EXT" ); - return createResultValueType( result, surfaceCapabilities ); + return createResultValueType( result, std::move( surfaceCapabilities ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8973,7 +8973,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &fence ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerEventEXT" ); - return createResultValueType( result, fence ); + return createResultValueType( result, std::move( fence ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -9039,7 +9039,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &fence ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerDisplayEventEXT" ); - return createResultValueType( result, fence ); + return createResultValueType( result, std::move( fence ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -9096,7 +9096,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetSwapchainCounterEXT( m_device, static_cast( swapchain ), static_cast( counter ), &counterValue ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainCounterEXT" ); - return createResultValueType( result, counterValue ); + return createResultValueType( result, std::move( counterValue ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9265,7 +9265,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast( d.vkGetFenceFdKHR( m_device, reinterpret_cast( &getFdInfo ), &fd ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceFdKHR" ); - return createResultValueType( result, fd ); + return createResultValueType( result, std::move( fd ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9331,7 +9331,7 @@ namespace VULKAN_HPP_NAMESPACE counters.resize( counterCount ); counterDescriptions.resize( counterCount ); } - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template ( &surfaceCapabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2KHR" ); - return createResultValueType( result, surfaceCapabilities ); + return createResultValueType( result, std::move( surfaceCapabilities ) ); } template @@ -9506,7 +9506,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &surfaceCapabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2KHR" ); - return createResultValueType( result, structureChain ); + return createResultValueType( result, std::move( structureChain ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9557,7 +9557,7 @@ namespace VULKAN_HPP_NAMESPACE { surfaceFormats.resize( surfaceFormatCount ); } - return createResultValueType( result, surfaceFormats ); + return createResultValueType( result, std::move( surfaceFormats ) ); } template @@ -9643,7 +9643,7 @@ namespace VULKAN_HPP_NAMESPACE { structureChains[i].template get() = surfaceFormats[i]; } - return createResultValueType( result, structureChains ); + return createResultValueType( result, std::move( structureChains ) ); } template () = surfaceFormats[i]; } - return createResultValueType( result, structureChains ); + return createResultValueType( result, std::move( structureChains ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9741,7 +9741,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -9777,7 +9777,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9822,7 +9822,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -9859,7 +9859,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9905,7 +9905,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -9944,7 +9944,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9977,7 +9977,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &capabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneCapabilities2KHR" ); - return createResultValueType( result, capabilities ); + return createResultValueType( result, std::move( capabilities ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -10171,7 +10171,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &messenger ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDebugUtilsMessengerEXT" ); - return createResultValueType( result, messenger ); + return createResultValueType( result, std::move( messenger ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -10368,7 +10368,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast( image ), reinterpret_cast( &properties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageDrmFormatModifierPropertiesEXT" ); - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -10408,7 +10408,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &memoryHostPointerProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryHostPointerPropertiesEXT" ); - return createResultValueType( result, memoryHostPointerProperties ); + return createResultValueType( result, std::move( memoryHostPointerProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -10454,7 +10454,7 @@ namespace VULKAN_HPP_NAMESPACE { timeDomains.resize( timeDomainCount ); } - return createResultValueType( result, timeDomains ); + return createResultValueType( result, std::move( timeDomains ) ); } template ( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsEXT" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template ( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsEXT" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template @@ -10569,7 +10569,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetCalibratedTimestampsEXT( m_device, 1, reinterpret_cast( ×tampInfo ), ×tamp, &maxDeviation ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampEXT" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -10618,7 +10618,7 @@ namespace VULKAN_HPP_NAMESPACE { fragmentShadingRates.resize( fragmentShadingRateCount ); } - return createResultValueType( result, fragmentShadingRates ); + return createResultValueType( result, std::move( fragmentShadingRates ) ); } template ( &surface ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createHeadlessSurfaceEXT" ); - return createResultValueType( result, surface ); + return createResultValueType( result, std::move( surface ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -11454,7 +11454,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetFenceSciSyncFenceNV( m_device, reinterpret_cast( &getSciSyncHandleInfo ), &handle ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceSciSyncFenceNV" ); - return createResultValueType( result, handle ); + return createResultValueType( result, std::move( handle ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11482,7 +11482,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetFenceSciSyncObjNV( m_device, reinterpret_cast( &getSciSyncHandleInfo ), &handle ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceSciSyncObjNV" ); - return createResultValueType( result, handle ); + return createResultValueType( result, std::move( handle ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11591,7 +11591,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetSemaphoreSciSyncObjNV( m_device, reinterpret_cast( &getSciSyncInfo ), &handle ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreSciSyncObjNV" ); - return createResultValueType( result, handle ); + return createResultValueType( result, std::move( handle ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11650,7 +11650,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetMemorySciBufNV( m_device, reinterpret_cast( &getSciBufInfo ), &handle ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemorySciBufNV" ); - return createResultValueType( result, handle ); + return createResultValueType( result, std::move( handle ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11690,7 +11690,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &memorySciBufProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getExternalMemorySciBufPropertiesNV" ); - return createResultValueType( result, memorySciBufProperties ); + return createResultValueType( result, std::move( memorySciBufProperties ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11821,7 +11821,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast( &semaphorePool ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSemaphoreSciSyncPoolNV" ); - return createResultValueType( result, semaphorePool ); + return createResultValueType( result, std::move( semaphorePool ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -11878,7 +11878,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetScreenBufferPropertiesQNX( m_device, &buffer, reinterpret_cast( &properties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getScreenBufferPropertiesQNX" ); - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template @@ -11896,7 +11896,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetScreenBufferPropertiesQNX( m_device, &buffer, reinterpret_cast( &properties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getScreenBufferPropertiesQNX" ); - return createResultValueType( result, structureChain ); + return createResultValueType( result, std::move( structureChain ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ #endif /*VK_USE_PLATFORM_SCREEN_QNX*/