diff options
author | Jon Leech <[email protected]> | 2024-02-16 02:32:27 -0800 |
---|---|---|
committer | Jon Leech <[email protected]> | 2024-02-16 02:34:38 -0800 |
commit | 31aa7f634b052d87ede4664053e85f3f4d1d50d3 (patch) | |
tree | 44af22e5a236cf648c1bcad2da54cebb50f1c73f /include/vulkan/vulkan_funcs.hpp | |
parent | 5ac36269f50381bdd92a5e1973d8eb041771e59e (diff) | |
download | Vulkan-Headers-31aa7f634b052d87ede4664053e85f3f4d1d50d3.tar.gz Vulkan-Headers-31aa7f634b052d87ede4664053e85f3f4d1d50d3.zip |
Update for Vulkan-Docs 1.3.278v1.3.278vulkan-tmp-1.3.278master
Diffstat (limited to 'include/vulkan/vulkan_funcs.hpp')
-rw-r--r-- | include/vulkan/vulkan_funcs.hpp | 647 |
1 files changed, 350 insertions, 297 deletions
diff --git a/include/vulkan/vulkan_funcs.hpp b/include/vulkan/vulkan_funcs.hpp index 3c8d9ae..0a09ecc 100644 --- a/include/vulkan/vulkan_funcs.hpp +++ b/include/vulkan/vulkan_funcs.hpp @@ -46,7 +46,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkInstance *>( &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 <typename PhysicalDeviceAllocator, @@ -164,7 +164,7 @@ namespace VULKAN_HPP_NAMESPACE { physicalDevices.resize( physicalDeviceCount ); } - return createResultValueType( result, physicalDevices ); + return createResultValueType( result, std::move( physicalDevices ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -263,7 +263,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkImageFormatProperties *>( &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<VkDevice *>( &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 <typename LayerPropertiesAllocator, @@ -739,7 +739,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -781,7 +781,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template <typename LayerPropertiesAllocator, @@ -814,7 +814,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -950,7 +950,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkDeviceMemory *>( &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<VkFence *>( &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<VkSemaphore *>( &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<VkEvent *>( &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<VkQueryPool *>( &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 @@ -2146,7 +2146,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::getQueryPoolResults", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::eNotReady } ); - return ResultValue<std::vector<DataType, DataTypeAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), data ); + return ResultValue<std::vector<DataType, DataTypeAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), std::move( data ) ); } template <typename DataType, typename Dispatch> @@ -2174,7 +2174,7 @@ namespace VULKAN_HPP_NAMESPACE resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getQueryPoolResult", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::eNotReady } ); - return ResultValue<DataType>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), data ); + return ResultValue<DataType>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -2209,7 +2209,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkBuffer *>( &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<VkBufferView *>( &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<VkImage *>( &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<VkImageView *>( &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<VkShaderModule *>( &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<VkPipelineCache *>( &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 <typename Uint8_tAllocator, @@ -2961,7 +2961,7 @@ namespace VULKAN_HPP_NAMESPACE { data.resize( dataSize ); } - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -3038,7 +3038,8 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipelines", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipelines ); + return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), + std::move( pipelines ) ); } template <typename PipelineAllocator, @@ -3068,7 +3069,8 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipelines", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipelines ); + return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), + std::move( pipelines ) ); } template <typename Dispatch> @@ -3095,7 +3097,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipeline", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<VULKAN_HPP_NAMESPACE::Pipeline>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipeline ); + return ResultValue<VULKAN_HPP_NAMESPACE::Pipeline>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), std::move( pipeline ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3244,7 +3246,8 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipelines", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipelines ); + return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), + std::move( pipelines ) ); } template <typename PipelineAllocator, @@ -3274,7 +3277,8 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipelines", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipelines ); + return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), + std::move( pipelines ) ); } template <typename Dispatch> @@ -3301,7 +3305,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipeline", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<VULKAN_HPP_NAMESPACE::Pipeline>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipeline ); + return ResultValue<VULKAN_HPP_NAMESPACE::Pipeline>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), std::move( pipeline ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -3493,7 +3497,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkPipelineLayout *>( &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 @@ -3605,7 +3609,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSampler *>( &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 @@ -3717,7 +3721,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkDescriptorSetLayout *>( &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 @@ -3835,7 +3839,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkDescriptorPool *>( &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 @@ -3966,7 +3970,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast<const VkDescriptorSetAllocateInfo *>( &allocateInfo ), reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSets" ); - return createResultValueType( result, descriptorSets ); + return createResultValueType( result, std::move( descriptorSets ) ); } template <typename DescriptorSetAllocator, @@ -3987,7 +3991,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast<const VkDescriptorSetAllocateInfo *>( &allocateInfo ), reinterpret_cast<VkDescriptorSet *>( 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 @@ -4169,7 +4173,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkFramebuffer *>( &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 @@ -4283,7 +4287,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkRenderPass *>( &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 @@ -4423,7 +4427,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkCommandPool *>( &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 @@ -4556,7 +4560,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast<const VkCommandBufferAllocateInfo *>( &allocateInfo ), reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffers" ); - return createResultValueType( result, commandBuffers ); + return createResultValueType( result, std::move( commandBuffers ) ); } template <typename CommandBufferAllocator, @@ -4577,7 +4581,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast<const VkCommandBufferAllocateInfo *>( &allocateInfo ), reinterpret_cast<VkCommandBuffer *>( 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 @@ -5738,7 +5742,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE::Result result = static_cast<VULKAN_HPP_NAMESPACE::Result>( 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 */ @@ -5889,7 +5893,7 @@ namespace VULKAN_HPP_NAMESPACE { physicalDeviceGroupProperties.resize( physicalDeviceGroupCount ); } - return createResultValueType( result, physicalDeviceGroupProperties ); + return createResultValueType( result, std::move( physicalDeviceGroupProperties ) ); } template <typename PhysicalDeviceGroupPropertiesAllocator, @@ -5927,7 +5931,7 @@ namespace VULKAN_HPP_NAMESPACE { physicalDeviceGroupProperties.resize( physicalDeviceGroupCount ); } - return createResultValueType( result, physicalDeviceGroupProperties ); + return createResultValueType( result, std::move( physicalDeviceGroupProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -6262,7 +6266,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2" ); - return createResultValueType( result, imageFormatProperties ); + return createResultValueType( result, std::move( imageFormatProperties ) ); } template <typename X, typename Y, typename... Z, typename Dispatch> @@ -6283,7 +6287,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkImageFormatProperties2 *>( &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 */ @@ -6616,7 +6620,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSamplerYcbcrConversion *>( &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 @@ -6739,7 +6743,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkDescriptorUpdateTemplate *>( &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 @@ -7076,7 +7080,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkRenderPass *>( &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 @@ -7211,7 +7215,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast<VULKAN_HPP_NAMESPACE::Result>( d.vkGetSemaphoreCounterValue( m_device, static_cast<VkSemaphore>( 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 */ @@ -7387,7 +7391,7 @@ namespace VULKAN_HPP_NAMESPACE { toolProperties.resize( toolCount ); } - return createResultValueType( result, toolProperties ); + return createResultValueType( result, std::move( toolProperties ) ); } template < @@ -7425,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 */ @@ -7462,7 +7466,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkPrivateDataSlot *>( &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 @@ -8354,7 +8358,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, queueFamilyIndex, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkBool32 *>( &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 */ @@ -8383,7 +8387,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkSurfaceCapabilitiesKHR *>( &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 */ @@ -8428,7 +8432,7 @@ namespace VULKAN_HPP_NAMESPACE { surfaceFormats.resize( surfaceFormatCount ); } - return createResultValueType( result, surfaceFormats ); + return createResultValueType( result, std::move( surfaceFormats ) ); } template <typename SurfaceFormatKHRAllocator, @@ -8464,7 +8468,7 @@ namespace VULKAN_HPP_NAMESPACE { surfaceFormats.resize( surfaceFormatCount ); } - return createResultValueType( result, surfaceFormats ); + return createResultValueType( result, std::move( surfaceFormats ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8509,7 +8513,7 @@ namespace VULKAN_HPP_NAMESPACE { presentModes.resize( presentModeCount ); } - return createResultValueType( result, presentModes ); + return createResultValueType( result, std::move( presentModes ) ); } template <typename PresentModeKHRAllocator, @@ -8545,7 +8549,7 @@ namespace VULKAN_HPP_NAMESPACE { presentModes.resize( presentModeCount ); } - return createResultValueType( result, presentModes ); + return createResultValueType( result, std::move( presentModes ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8584,7 +8588,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSwapchainKHR *>( &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 @@ -8706,7 +8710,7 @@ namespace VULKAN_HPP_NAMESPACE { swapchainImages.resize( swapchainImageCount ); } - return createResultValueType( result, swapchainImages ); + return createResultValueType( result, std::move( swapchainImages ) ); } template <typename ImageAllocator, @@ -8740,7 +8744,7 @@ namespace VULKAN_HPP_NAMESPACE { swapchainImages.resize( swapchainImageCount ); } - return createResultValueType( result, swapchainImages ); + return createResultValueType( result, std::move( swapchainImages ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8780,7 +8784,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE::Result::eNotReady, VULKAN_HPP_NAMESPACE::Result::eSuboptimalKHR } ); - return ResultValue<uint32_t>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), imageIndex ); + return ResultValue<uint32_t>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), std::move( imageIndex ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8836,7 +8840,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetDeviceGroupPresentCapabilitiesKHR( m_device, reinterpret_cast<VkDeviceGroupPresentCapabilitiesKHR *>( &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 */ @@ -8866,7 +8870,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( &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 */ @@ -8912,7 +8916,7 @@ namespace VULKAN_HPP_NAMESPACE { rects.resize( rectCount ); } - return createResultValueType( result, rects ); + return createResultValueType( result, std::move( rects ) ); } template <typename Rect2DAllocator, @@ -8947,7 +8951,7 @@ namespace VULKAN_HPP_NAMESPACE { rects.resize( rectCount ); } - return createResultValueType( result, rects ); + return createResultValueType( result, std::move( rects ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -8980,7 +8984,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE::Result::eNotReady, VULKAN_HPP_NAMESPACE::Result::eSuboptimalKHR } ); - return ResultValue<uint32_t>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), imageIndex ); + return ResultValue<uint32_t>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), std::move( imageIndex ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9025,7 +9029,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -9059,7 +9063,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9103,7 +9107,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -9139,7 +9143,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9183,7 +9187,7 @@ namespace VULKAN_HPP_NAMESPACE { displays.resize( displayCount ); } - return createResultValueType( result, displays ); + return createResultValueType( result, std::move( displays ) ); } template <typename DisplayKHRAllocator, @@ -9216,7 +9220,7 @@ namespace VULKAN_HPP_NAMESPACE { displays.resize( displayCount ); } - return createResultValueType( result, displays ); + return createResultValueType( result, std::move( displays ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9262,7 +9266,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template <typename DisplayModePropertiesKHRAllocator, @@ -9300,7 +9304,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -9341,7 +9345,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkDisplayModeKHR *>( &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 @@ -9399,7 +9403,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, static_cast<VkDisplayModeKHR>( mode ), planeIndex, reinterpret_cast<VkDisplayPlaneCapabilitiesKHR *>( &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 */ @@ -9436,7 +9440,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -9503,7 +9507,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSwapchainKHR *>( swapchains.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHR" ); - return createResultValueType( result, swapchains ); + return createResultValueType( result, std::move( swapchains ) ); } template <typename SwapchainKHRAllocator, @@ -9529,7 +9533,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSwapchainKHR *>( swapchains.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHR" ); - return createResultValueType( result, swapchains ); + return createResultValueType( result, std::move( swapchains ) ); } template <typename Dispatch> @@ -9552,7 +9556,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSwapchainKHR *>( &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 @@ -9682,7 +9686,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -9773,7 +9777,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -9868,7 +9872,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -9960,7 +9964,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -10026,7 +10030,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -10099,7 +10103,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkDebugReportCallbackEXT *>( &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 @@ -10364,7 +10368,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, reinterpret_cast<const VkVideoProfileInfoKHR *>( &videoProfile ), reinterpret_cast<VkVideoCapabilitiesKHR *>( &capabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoCapabilitiesKHR" ); - return createResultValueType( result, capabilities ); + return createResultValueType( result, std::move( capabilities ) ); } template <typename X, typename Y, typename... Z, typename Dispatch> @@ -10382,7 +10386,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, reinterpret_cast<const VkVideoProfileInfoKHR *>( &videoProfile ), reinterpret_cast<VkVideoCapabilitiesKHR *>( &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 */ @@ -10435,7 +10439,7 @@ namespace VULKAN_HPP_NAMESPACE { videoFormatProperties.resize( videoFormatPropertyCount ); } - return createResultValueType( result, videoFormatProperties ); + return createResultValueType( result, std::move( videoFormatProperties ) ); } template <typename VideoFormatPropertiesKHRAllocator, @@ -10477,7 +10481,7 @@ namespace VULKAN_HPP_NAMESPACE { videoFormatProperties.resize( videoFormatPropertyCount ); } - return createResultValueType( result, videoFormatProperties ); + return createResultValueType( result, std::move( videoFormatProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -10514,7 +10518,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkVideoSessionKHR *>( &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 @@ -10763,7 +10767,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkVideoSessionParametersKHR *>( &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 @@ -11189,7 +11193,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkCuModuleNVX *>( &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 @@ -11251,7 +11255,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkCuFunctionNVX *>( &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 @@ -11457,7 +11461,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetImageViewAddressNVX( m_device, static_cast<VkImageView>( imageView ), reinterpret_cast<VkImageViewAddressPropertiesNVX *>( &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 */ @@ -11561,7 +11565,7 @@ namespace VULKAN_HPP_NAMESPACE { info.resize( infoSize ); } - return createResultValueType( result, info ); + return createResultValueType( result, std::move( info ) ); } template <typename Uint8_tAllocator, @@ -11607,7 +11611,7 @@ namespace VULKAN_HPP_NAMESPACE { info.resize( infoSize ); } - return createResultValueType( result, info ); + return createResultValueType( result, std::move( info ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -11679,7 +11683,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -11763,7 +11767,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkExternalImageFormatPropertiesNV *>( &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 */ @@ -11796,7 +11800,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetMemoryWin32HandleNV( m_device, static_cast<VkDeviceMemory>( memory ), static_cast<VkExternalMemoryHandleTypeFlagsNV>( 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*/ @@ -11966,7 +11970,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2KHR" ); - return createResultValueType( result, imageFormatProperties ); + return createResultValueType( result, std::move( imageFormatProperties ) ); } template <typename X, typename Y, typename... Z, typename Dispatch> @@ -11987,7 +11991,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkImageFormatProperties2 *>( &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 */ @@ -12340,7 +12344,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -12425,7 +12429,7 @@ namespace VULKAN_HPP_NAMESPACE { physicalDeviceGroupProperties.resize( physicalDeviceGroupCount ); } - return createResultValueType( result, physicalDeviceGroupProperties ); + return createResultValueType( result, std::move( physicalDeviceGroupProperties ) ); } template <typename PhysicalDeviceGroupPropertiesAllocator, @@ -12463,7 +12467,7 @@ namespace VULKAN_HPP_NAMESPACE { physicalDeviceGroupProperties.resize( physicalDeviceGroupCount ); } - return createResultValueType( result, physicalDeviceGroupProperties ); + return createResultValueType( result, std::move( physicalDeviceGroupProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -12529,7 +12533,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetMemoryWin32HandleKHR( m_device, reinterpret_cast<const VkMemoryGetWin32HandleInfoKHR *>( &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 */ @@ -12565,7 +12569,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkMemoryWin32HandlePropertiesKHR *>( &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*/ @@ -12596,7 +12600,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast<VULKAN_HPP_NAMESPACE::Result>( d.vkGetMemoryFdKHR( m_device, reinterpret_cast<const VkMemoryGetFdInfoKHR *>( &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 */ @@ -12626,7 +12630,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ), fd, reinterpret_cast<VkMemoryFdPropertiesKHR *>( &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 */ @@ -12720,7 +12724,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetSemaphoreWin32HandleKHR( m_device, reinterpret_cast<const VkSemaphoreGetWin32HandleInfoKHR *>( &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*/ @@ -12777,7 +12781,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast<VULKAN_HPP_NAMESPACE::Result>( d.vkGetSemaphoreFdKHR( m_device, reinterpret_cast<const VkSemaphoreGetFdInfoKHR *>( &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 */ @@ -12925,7 +12929,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkDescriptorUpdateTemplate *>( &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 @@ -13122,7 +13126,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetRandROutputDisplayEXT( m_physicalDevice, &dpy, rrOutput, reinterpret_cast<VkDisplayKHR *>( &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 @@ -13176,7 +13180,7 @@ namespace VULKAN_HPP_NAMESPACE m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkSurfaceCapabilities2EXT *>( &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 */ @@ -13244,7 +13248,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkFence *>( &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 @@ -13310,7 +13314,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkFence *>( &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 @@ -13367,7 +13371,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetSwapchainCounterEXT( m_device, static_cast<VkSwapchainKHR>( swapchain ), static_cast<VkSurfaceCounterFlagBitsEXT>( 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 */ @@ -13399,7 +13403,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkRefreshCycleDurationGOOGLE *>( &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 */ @@ -13451,7 +13455,7 @@ namespace VULKAN_HPP_NAMESPACE { presentationTimings.resize( presentationTimingCount ); } - return createResultValueType( result, presentationTimings ); + return createResultValueType( result, std::move( presentationTimings ) ); } template < @@ -13494,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 */ @@ -13616,7 +13620,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkRenderPass *>( &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 @@ -13838,7 +13842,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetFenceWin32HandleKHR( m_device, reinterpret_cast<const VkFenceGetWin32HandleInfoKHR *>( &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*/ @@ -13895,7 +13899,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast<VULKAN_HPP_NAMESPACE::Result>( d.vkGetFenceFdKHR( m_device, reinterpret_cast<const VkFenceGetFdInfoKHR *>( &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 */ @@ -13961,7 +13965,7 @@ namespace VULKAN_HPP_NAMESPACE counters.resize( counterCount ); counterDescriptions.resize( counterCount ); } - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template <typename PerformanceCounterKHRAllocator, @@ -14016,7 +14020,7 @@ namespace VULKAN_HPP_NAMESPACE counters.resize( counterCount ); counterDescriptions.resize( counterCount ); } - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -14115,7 +14119,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceCapabilities2KHR *>( &surfaceCapabilities ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2KHR" ); - return createResultValueType( result, surfaceCapabilities ); + return createResultValueType( result, std::move( surfaceCapabilities ) ); } template <typename X, typename Y, typename... Z, typename Dispatch> @@ -14136,7 +14140,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceCapabilities2KHR *>( &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 */ @@ -14187,7 +14191,7 @@ namespace VULKAN_HPP_NAMESPACE { surfaceFormats.resize( surfaceFormatCount ); } - return createResultValueType( result, surfaceFormats ); + return createResultValueType( result, std::move( surfaceFormats ) ); } template <typename SurfaceFormat2KHRAllocator, @@ -14227,7 +14231,7 @@ namespace VULKAN_HPP_NAMESPACE { surfaceFormats.resize( surfaceFormatCount ); } - return createResultValueType( result, surfaceFormats ); + return createResultValueType( result, std::move( surfaceFormats ) ); } template <typename StructureChain, typename StructureChainAllocator, typename Dispatch> @@ -14273,7 +14277,7 @@ namespace VULKAN_HPP_NAMESPACE { structureChains[i].template get<VULKAN_HPP_NAMESPACE::SurfaceFormat2KHR>() = surfaceFormats[i]; } - return createResultValueType( result, structureChains ); + return createResultValueType( result, std::move( structureChains ) ); } template <typename StructureChain, @@ -14324,7 +14328,7 @@ namespace VULKAN_HPP_NAMESPACE { structureChains[i].template get<VULKAN_HPP_NAMESPACE::SurfaceFormat2KHR>() = surfaceFormats[i]; } - return createResultValueType( result, structureChains ); + return createResultValueType( result, std::move( structureChains ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -14371,7 +14375,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -14407,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 */ @@ -14452,7 +14456,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -14489,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 */ @@ -14535,7 +14539,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template < @@ -14574,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 */ @@ -14607,7 +14611,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkDisplayPlaneCapabilities2KHR *>( &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 */ @@ -14647,7 +14651,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -14713,7 +14717,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -14933,7 +14937,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkDebugUtilsMessengerEXT *>( &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 @@ -15080,7 +15084,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetAndroidHardwareBufferPropertiesANDROID( m_device, &buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID *>( &properties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAndroidHardwareBufferPropertiesANDROID" ); - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template <typename X, typename Y, typename... Z, typename Dispatch> @@ -15100,7 +15104,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetAndroidHardwareBufferPropertiesANDROID( m_device, &buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID *>( &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 */ @@ -15131,7 +15135,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetMemoryAndroidHardwareBufferANDROID( m_device, reinterpret_cast<const VkMemoryGetAndroidHardwareBufferInfoANDROID *>( &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*/ @@ -15182,7 +15186,8 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelinesAMDX", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipelines ); + return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), + std::move( pipelines ) ); } template <typename PipelineAllocator, @@ -15212,7 +15217,8 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelinesAMDX", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipelines ); + return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), + std::move( pipelines ) ); } template <typename Dispatch> @@ -15239,7 +15245,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelineAMDX", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<VULKAN_HPP_NAMESPACE::Pipeline>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipeline ); + return ResultValue<VULKAN_HPP_NAMESPACE::Pipeline>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), std::move( pipeline ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -15375,7 +15381,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkPipeline>( executionGraph ), reinterpret_cast<VkExecutionGraphPipelineScratchSizeAMDX *>( &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 */ @@ -15406,7 +15412,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkPipeline>( executionGraph ), reinterpret_cast<const VkPipelineShaderStageNodeCreateInfoAMDX *>( &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 */ @@ -15741,7 +15747,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkAccelerationStructureKHR *>( &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 @@ -16131,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 <typename DataType, typename Dispatch> @@ -16158,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 */ @@ -16480,7 +16486,8 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE::Result::eOperationNotDeferredKHR, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipelines ); + return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), + std::move( pipelines ) ); } template <typename PipelineAllocator, @@ -16515,7 +16522,8 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE::Result::eOperationNotDeferredKHR, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipelines ); + return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), + std::move( pipelines ) ); } template <typename Dispatch> @@ -16547,7 +16555,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE::Result::eOperationNotDeferredKHR, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<VULKAN_HPP_NAMESPACE::Pipeline>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipeline ); + return ResultValue<VULKAN_HPP_NAMESPACE::Pipeline>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), std::move( pipeline ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -16701,7 +16709,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast<void *>( data.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandlesKHR" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template <typename DataType, typename Dispatch> @@ -16719,7 +16727,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast<void *>( &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 */ @@ -16754,7 +16762,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast<void *>( data.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingCaptureReplayShaderGroupHandlesKHR" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template <typename DataType, typename Dispatch> @@ -16772,7 +16780,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast<void *>( &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 */ @@ -16871,7 +16879,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSamplerYcbcrConversion *>( &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 @@ -17014,7 +17022,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkImage>( image ), reinterpret_cast<VkImageDrmFormatModifierPropertiesEXT *>( &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 */ @@ -17053,7 +17061,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkValidationCacheEXT *>( &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 @@ -17209,7 +17217,7 @@ namespace VULKAN_HPP_NAMESPACE { data.resize( dataSize ); } - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template <typename Uint8_tAllocator, @@ -17243,7 +17251,7 @@ namespace VULKAN_HPP_NAMESPACE { data.resize( dataSize ); } - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -17354,7 +17362,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkAccelerationStructureNV *>( &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 @@ -17662,7 +17670,8 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesNV", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipelines ); + return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), + std::move( pipelines ) ); } template <typename PipelineAllocator, @@ -17692,7 +17701,8 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesNV", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipelines ); + return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::Pipeline, PipelineAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), + std::move( pipelines ) ); } template <typename Dispatch> @@ -17719,7 +17729,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelineNV", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::ePipelineCompileRequiredEXT } ); - return ResultValue<VULKAN_HPP_NAMESPACE::Pipeline>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), pipeline ); + return ResultValue<VULKAN_HPP_NAMESPACE::Pipeline>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), std::move( pipeline ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE @@ -17856,7 +17866,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast<void *>( data.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandlesNV" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template <typename DataType, typename Dispatch> @@ -17874,7 +17884,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast<void *>( &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 */ @@ -17905,7 +17915,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkAccelerationStructureNV>( accelerationStructure ), data.size() * sizeof( DataType ), reinterpret_cast<void *>( data.data() ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureHandleNV" ); - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template <typename DataType, typename Dispatch> @@ -17922,7 +17932,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkAccelerationStructureNV>( accelerationStructure ), sizeof( DataType ), reinterpret_cast<void *>( &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 */ @@ -18121,7 +18131,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkMemoryHostPointerPropertiesEXT *>( &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 */ @@ -18184,7 +18194,7 @@ namespace VULKAN_HPP_NAMESPACE { timeDomains.resize( timeDomainCount ); } - return createResultValueType( result, timeDomains ); + return createResultValueType( result, std::move( timeDomains ) ); } template <typename TimeDomainKHRAllocator, @@ -18218,7 +18228,7 @@ namespace VULKAN_HPP_NAMESPACE { timeDomains.resize( timeDomainCount ); } - return createResultValueType( result, timeDomains ); + return createResultValueType( result, std::move( timeDomains ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -18254,7 +18264,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, timestampInfos.size(), reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsEXT" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template <typename Uint64_tAllocator, @@ -18279,7 +18289,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, timestampInfos.size(), reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsEXT" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template <typename Dispatch> @@ -18299,7 +18309,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetCalibratedTimestampsEXT( m_device, 1, reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( ×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 */ @@ -18505,7 +18515,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast<VULKAN_HPP_NAMESPACE::Result>( d.vkGetSemaphoreCounterValueKHR( m_device, static_cast<VkSemaphore>( 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 */ @@ -18708,7 +18718,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkPerformanceConfigurationINTEL *>( &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 @@ -18839,7 +18849,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkPerformanceParameterTypeINTEL>( parameter ), reinterpret_cast<VkPerformanceValueINTEL *>( &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 */ @@ -18891,7 +18901,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -18957,7 +18967,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -19032,7 +19042,7 @@ namespace VULKAN_HPP_NAMESPACE { fragmentShadingRates.resize( fragmentShadingRateCount ); } - return createResultValueType( result, fragmentShadingRates ); + return createResultValueType( result, std::move( fragmentShadingRates ) ); } template <typename PhysicalDeviceFragmentShadingRateKHRAllocator, @@ -19072,7 +19082,7 @@ namespace VULKAN_HPP_NAMESPACE { fragmentShadingRates.resize( fragmentShadingRateCount ); } - return createResultValueType( result, fragmentShadingRates ); + return createResultValueType( result, std::move( fragmentShadingRates ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -19220,7 +19230,7 @@ namespace VULKAN_HPP_NAMESPACE { toolProperties.resize( toolCount ); } - return createResultValueType( result, toolProperties ); + return createResultValueType( result, std::move( toolProperties ) ); } template < @@ -19258,7 +19268,7 @@ namespace VULKAN_HPP_NAMESPACE { toolProperties.resize( toolCount ); } - return createResultValueType( result, toolProperties ); + return createResultValueType( result, std::move( toolProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -19336,7 +19346,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template <typename CooperativeMatrixPropertiesNVAllocator, @@ -19375,7 +19385,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -19422,7 +19432,7 @@ namespace VULKAN_HPP_NAMESPACE { combinations.resize( combinationCount ); } - return createResultValueType( result, combinations ); + return createResultValueType( result, std::move( combinations ) ); } template <typename FramebufferMixedSamplesCombinationNVAllocator, @@ -19462,7 +19472,7 @@ namespace VULKAN_HPP_NAMESPACE { combinations.resize( combinationCount ); } - return createResultValueType( result, combinations ); + return createResultValueType( result, std::move( combinations ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -19517,7 +19527,7 @@ namespace VULKAN_HPP_NAMESPACE { presentModes.resize( presentModeCount ); } - return createResultValueType( result, presentModes ); + return createResultValueType( result, std::move( presentModes ) ); } template <typename PresentModeKHRAllocator, @@ -19557,7 +19567,7 @@ namespace VULKAN_HPP_NAMESPACE { presentModes.resize( presentModeCount ); } - return createResultValueType( result, presentModes ); + return createResultValueType( result, std::move( presentModes ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -19640,7 +19650,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ), reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( &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*/ @@ -19680,7 +19690,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -20023,7 +20033,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkDeferredOperationKHR *>( &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 @@ -20216,7 +20226,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( executableCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template <typename PipelineExecutablePropertiesKHRAllocator, @@ -20260,7 +20270,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( executableCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -20313,7 +20323,7 @@ namespace VULKAN_HPP_NAMESPACE { statistics.resize( statisticCount ); } - return createResultValueType( result, statistics ); + return createResultValueType( result, std::move( statistics ) ); } template <typename PipelineExecutableStatisticKHRAllocator, @@ -20357,7 +20367,7 @@ namespace VULKAN_HPP_NAMESPACE { statistics.resize( statisticCount ); } - return createResultValueType( result, statistics ); + return createResultValueType( result, std::move( statistics ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -20412,7 +20422,7 @@ namespace VULKAN_HPP_NAMESPACE { internalRepresentations.resize( internalRepresentationCount ); } - return createResultValueType( result, internalRepresentations ); + return createResultValueType( result, std::move( internalRepresentations ) ); } template <typename PipelineExecutableInternalRepresentationKHRAllocator, @@ -20457,7 +20467,7 @@ namespace VULKAN_HPP_NAMESPACE { internalRepresentations.resize( internalRepresentationCount ); } - return createResultValueType( result, internalRepresentations ); + return createResultValueType( result, std::move( internalRepresentations ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -20652,13 +20662,13 @@ namespace VULKAN_HPP_NAMESPACE static_cast<VULKAN_HPP_NAMESPACE::Result>( d.vkMapMemory2KHR( m_device, reinterpret_cast<const VkMemoryMapInfoKHR *>( &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 */ template <typename Dispatch> - VULKAN_HPP_INLINE Result Device::unmapMemory2KHR( const VULKAN_HPP_NAMESPACE::MemoryUnmapInfoKHR * pMemoryUnmapInfo, - Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::unmapMemory2KHR( const VULKAN_HPP_NAMESPACE::MemoryUnmapInfoKHR * pMemoryUnmapInfo, + Dispatch const & d ) const VULKAN_HPP_NOEXCEPT { VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); return static_cast<Result>( d.vkUnmapMemory2KHR( m_device, reinterpret_cast<const VkMemoryUnmapInfoKHR *>( pMemoryUnmapInfo ) ) ); @@ -20666,15 +20676,19 @@ namespace VULKAN_HPP_NAMESPACE #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE template <typename Dispatch> - VULKAN_HPP_INLINE void Device::unmapMemory2KHR( const VULKAN_HPP_NAMESPACE::MemoryUnmapInfoKHR & memoryUnmapInfo, - Dispatch const & d ) const VULKAN_HPP_NOEXCEPT + VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::unmapMemory2KHR( const VULKAN_HPP_NAMESPACE::MemoryUnmapInfoKHR & memoryUnmapInfo, + Dispatch const & d ) const { VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) VULKAN_HPP_ASSERT( d.vkUnmapMemory2KHR && "Function <vkUnmapMemory2KHR> requires <VK_KHR_map_memory2>" ); # endif - d.vkUnmapMemory2KHR( m_device, reinterpret_cast<const VkMemoryUnmapInfoKHR *>( &memoryUnmapInfo ) ); + VULKAN_HPP_NAMESPACE::Result result = + static_cast<VULKAN_HPP_NAMESPACE::Result>( d.vkUnmapMemory2KHR( m_device, reinterpret_cast<const VkMemoryUnmapInfoKHR *>( &memoryUnmapInfo ) ) ); + resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::unmapMemory2KHR" ); + + return createResultValueType( result ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -20852,7 +20866,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkIndirectCommandsLayoutNV *>( &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 @@ -21016,7 +21030,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast<VULKAN_HPP_NAMESPACE::Result>( d.vkGetDrmDisplayEXT( m_physicalDevice, drmFd, connectorId, reinterpret_cast<VkDisplayKHR *>( &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 @@ -21075,7 +21089,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkPrivateDataSlot *>( &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 @@ -21228,7 +21242,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkVideoEncodeQualityLevelPropertiesKHR *>( &qualityLevelProperties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR" ); - return createResultValueType( result, qualityLevelProperties ); + return createResultValueType( result, std::move( qualityLevelProperties ) ); } template <typename X, typename Y, typename... Z, typename Dispatch> @@ -21251,7 +21265,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkVideoEncodeQualityLevelPropertiesKHR *>( &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 */ @@ -21310,7 +21324,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 <typename Uint8_tAllocator, @@ -21354,7 +21368,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 <typename X, typename Y, typename... Z, typename Uint8_tAllocator, typename Dispatch> @@ -21395,7 +21409,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 <typename X, @@ -21443,7 +21457,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_ ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -21505,7 +21519,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkCudaModuleNV *>( &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 @@ -21573,7 +21587,7 @@ namespace VULKAN_HPP_NAMESPACE { cacheData.resize( cacheSize ); } - return createResultValueType( result, cacheData ); + return createResultValueType( result, std::move( cacheData ) ); } template <typename Uint8_tAllocator, @@ -21606,7 +21620,7 @@ namespace VULKAN_HPP_NAMESPACE { cacheData.resize( cacheSize ); } - return createResultValueType( result, cacheData ); + return createResultValueType( result, std::move( cacheData ) ); } # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -21643,7 +21657,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkCudaFunctionNV *>( &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 @@ -22257,7 +22271,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetBufferOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast<const VkBufferCaptureDescriptorDataInfoEXT *>( &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 */ @@ -22286,7 +22300,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetImageOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast<const VkImageCaptureDescriptorDataInfoEXT *>( &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 */ @@ -22315,7 +22329,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetImageViewOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast<const VkImageViewCaptureDescriptorDataInfoEXT *>( &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 */ @@ -22344,7 +22358,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetSamplerOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast<const VkSamplerCaptureDescriptorDataInfoEXT *>( &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 */ @@ -22374,7 +22388,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast<const VkAccelerationStructureCaptureDescriptorDataInfoEXT *>( &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 */ @@ -22578,8 +22592,9 @@ namespace VULKAN_HPP_NAMESPACE #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE template <typename Dispatch> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::pair<VULKAN_HPP_NAMESPACE::DeviceFaultCountsEXT, VULKAN_HPP_NAMESPACE::DeviceFaultInfoEXT>> - Device::getFaultInfoEXT( Dispatch const & d ) const + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE + typename ResultValueType<std::pair<VULKAN_HPP_NAMESPACE::DeviceFaultCountsEXT, VULKAN_HPP_NAMESPACE::DeviceFaultInfoEXT>>::type + Device::getFaultInfoEXT( Dispatch const & d ) const { VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) @@ -22589,13 +22604,38 @@ namespace VULKAN_HPP_NAMESPACE std::pair<VULKAN_HPP_NAMESPACE::DeviceFaultCountsEXT, VULKAN_HPP_NAMESPACE::DeviceFaultInfoEXT> data_; VULKAN_HPP_NAMESPACE::DeviceFaultCountsEXT & faultCounts = data_.first; VULKAN_HPP_NAMESPACE::DeviceFaultInfoEXT & faultInfo = data_.second; - VULKAN_HPP_NAMESPACE::Result result = static_cast<VULKAN_HPP_NAMESPACE::Result>( d.vkGetDeviceFaultInfoEXT( - m_device, reinterpret_cast<VkDeviceFaultCountsEXT *>( &faultCounts ), reinterpret_cast<VkDeviceFaultInfoEXT *>( &faultInfo ) ) ); + VULKAN_HPP_NAMESPACE::Result result; + do + { + result = + static_cast<VULKAN_HPP_NAMESPACE::Result>( d.vkGetDeviceFaultInfoEXT( m_device, reinterpret_cast<VkDeviceFaultCountsEXT *>( &faultCounts ), nullptr ) ); + if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess ) + { + std::free( faultInfo.pAddressInfos ); + if ( faultCounts.addressInfoCount ) + { + faultInfo.pAddressInfos = reinterpret_cast<VULKAN_HPP_NAMESPACE::DeviceFaultAddressInfoEXT *>( + std::malloc( faultCounts.addressInfoCount * sizeof( VULKAN_HPP_NAMESPACE::DeviceFaultAddressInfoEXT ) ) ); + } + std::free( faultInfo.pVendorInfos ); + if ( faultCounts.vendorInfoCount ) + { + faultInfo.pVendorInfos = reinterpret_cast<VULKAN_HPP_NAMESPACE::DeviceFaultVendorInfoEXT *>( + std::malloc( faultCounts.vendorInfoCount * sizeof( VULKAN_HPP_NAMESPACE::DeviceFaultVendorInfoEXT ) ) ); + } + std::free( faultInfo.pVendorBinaryData ); + if ( faultCounts.vendorBinarySize ) + { + faultInfo.pVendorBinaryData = std::malloc( faultCounts.vendorBinarySize ); + } + result = static_cast<VULKAN_HPP_NAMESPACE::Result>( d.vkGetDeviceFaultInfoEXT( + m_device, reinterpret_cast<VkDeviceFaultCountsEXT *>( &faultCounts ), reinterpret_cast<VkDeviceFaultInfoEXT *>( &faultInfo ) ) ); + } + } while ( result == VULKAN_HPP_NAMESPACE::Result::eIncomplete ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFaultInfoEXT", { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::eIncomplete } ); - return ResultValue<std::pair<VULKAN_HPP_NAMESPACE::DeviceFaultCountsEXT, VULKAN_HPP_NAMESPACE::DeviceFaultInfoEXT>>( - static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), data_ ); + return createResultValueType( result, std::move( data_ ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -22652,7 +22692,7 @@ namespace VULKAN_HPP_NAMESPACE static_cast<VULKAN_HPP_NAMESPACE::Result>( d.vkGetWinrtDisplayNV( m_physicalDevice, deviceRelativeId, reinterpret_cast<VkDisplayKHR *>( &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 @@ -22713,7 +22753,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -22835,7 +22875,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetMemoryZirconHandleFUCHSIA( m_device, reinterpret_cast<const VkMemoryGetZirconHandleInfoFUCHSIA *>( &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 */ @@ -22875,7 +22915,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkMemoryZirconHandlePropertiesFUCHSIA *>( &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*/ @@ -22937,7 +22977,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetSemaphoreZirconHandleFUCHSIA( m_device, reinterpret_cast<const VkSemaphoreGetZirconHandleInfoFUCHSIA *>( &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*/ @@ -22979,7 +23019,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkBufferCollectionFUCHSIA *>( &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 @@ -23155,7 +23195,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<VkBufferCollectionPropertiesFUCHSIA *>( &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*/ @@ -23174,8 +23214,8 @@ namespace VULKAN_HPP_NAMESPACE #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE template <typename Dispatch> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<VULKAN_HPP_NAMESPACE::Extent2D> - Device::getSubpassShadingMaxWorkgroupSizeHUAWEI( VULKAN_HPP_NAMESPACE::RenderPass renderpass, Dispatch const & d ) const + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VULKAN_HPP_NAMESPACE::Extent2D>::type + Device::getSubpassShadingMaxWorkgroupSizeHUAWEI( VULKAN_HPP_NAMESPACE::RenderPass renderpass, Dispatch const & d ) const { VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION ); # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) @@ -23186,11 +23226,9 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_NAMESPACE::Extent2D maxWorkgroupSize; VULKAN_HPP_NAMESPACE::Result result = static_cast<VULKAN_HPP_NAMESPACE::Result>( d.vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI( m_device, static_cast<VkRenderPass>( renderpass ), reinterpret_cast<VkExtent2D *>( &maxWorkgroupSize ) ) ); - resultCheck( result, - VULKAN_HPP_NAMESPACE_STRING "::Device::getSubpassShadingMaxWorkgroupSizeHUAWEI", - { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::eIncomplete } ); + resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSubpassShadingMaxWorkgroupSizeHUAWEI" ); - return ResultValue<VULKAN_HPP_NAMESPACE::Extent2D>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), maxWorkgroupSize ); + return createResultValueType( result, std::move( maxWorkgroupSize ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -23240,7 +23278,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast<const VkMemoryGetRemoteAddressInfoNV *>( &memoryGetRemoteAddressInfo ), reinterpret_cast<VkRemoteAddressNV *>( &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 */ @@ -23271,7 +23309,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, reinterpret_cast<const VkPipelineInfoEXT *>( &pipelineInfo ), reinterpret_cast<VkBaseOutStructure *>( &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 */ @@ -23350,7 +23388,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkSurfaceKHR *>( &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 @@ -23549,7 +23587,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkMicromapEXT *>( µ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 @@ -23821,7 +23859,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 <typename DataType, typename Dispatch> @@ -23847,7 +23885,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 */ @@ -24956,7 +24994,7 @@ namespace VULKAN_HPP_NAMESPACE { imageFormatProperties.resize( formatCount ); } - return createResultValueType( result, imageFormatProperties ); + return createResultValueType( result, std::move( imageFormatProperties ) ); } template <typename OpticalFlowImageFormatPropertiesNVAllocator, @@ -25000,7 +25038,7 @@ namespace VULKAN_HPP_NAMESPACE { imageFormatProperties.resize( formatCount ); } - return createResultValueType( result, imageFormatProperties ); + return createResultValueType( result, std::move( imageFormatProperties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25037,7 +25075,7 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<VkOpticalFlowSessionNV *>( &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 @@ -25352,8 +25390,8 @@ namespace VULKAN_HPP_NAMESPACE #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE template <typename ShaderEXTAllocator, typename Dispatch> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<VULKAN_HPP_NAMESPACE::ShaderEXT, ShaderEXTAllocator>>::type - Device::createShadersEXT( VULKAN_HPP_NAMESPACE::ArrayProxy<const VULKAN_HPP_NAMESPACE::ShaderCreateInfoEXT> const & createInfos, + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<VULKAN_HPP_NAMESPACE::ShaderEXT, ShaderEXTAllocator>> + Device::createShadersEXT( VULKAN_HPP_NAMESPACE::ArrayProxy<const VULKAN_HPP_NAMESPACE::ShaderCreateInfoEXT> const & createInfos, Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator, Dispatch const & d ) const { @@ -25369,16 +25407,19 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<const VkShaderCreateInfoEXT *>( createInfos.data() ), reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ), reinterpret_cast<VkShaderEXT *>( shaders.data() ) ) ); - resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXT" ); + resultCheck( result, + VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXT", + { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::eIncompatibleShaderBinaryEXT } ); - return createResultValueType( result, shaders ); + return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::ShaderEXT, ShaderEXTAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), + std::move( shaders ) ); } template <typename ShaderEXTAllocator, typename Dispatch, typename std::enable_if<std::is_same<typename ShaderEXTAllocator::value_type, VULKAN_HPP_NAMESPACE::ShaderEXT>::value, int>::type> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<VULKAN_HPP_NAMESPACE::ShaderEXT, ShaderEXTAllocator>>::type - Device::createShadersEXT( VULKAN_HPP_NAMESPACE::ArrayProxy<const VULKAN_HPP_NAMESPACE::ShaderCreateInfoEXT> const & createInfos, + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<VULKAN_HPP_NAMESPACE::ShaderEXT, ShaderEXTAllocator>> + Device::createShadersEXT( VULKAN_HPP_NAMESPACE::ArrayProxy<const VULKAN_HPP_NAMESPACE::ShaderCreateInfoEXT> const & createInfos, Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator, ShaderEXTAllocator & shaderEXTAllocator, Dispatch const & d ) const @@ -25395,14 +25436,17 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<const VkShaderCreateInfoEXT *>( createInfos.data() ), reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ), reinterpret_cast<VkShaderEXT *>( shaders.data() ) ) ); - resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXT" ); + resultCheck( result, + VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXT", + { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::eIncompatibleShaderBinaryEXT } ); - return createResultValueType( result, shaders ); + return ResultValue<std::vector<VULKAN_HPP_NAMESPACE::ShaderEXT, ShaderEXTAllocator>>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), + std::move( shaders ) ); } template <typename Dispatch> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VULKAN_HPP_NAMESPACE::ShaderEXT>::type - Device::createShaderEXT( const VULKAN_HPP_NAMESPACE::ShaderCreateInfoEXT & createInfo, + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<VULKAN_HPP_NAMESPACE::ShaderEXT> + Device::createShaderEXT( const VULKAN_HPP_NAMESPACE::ShaderCreateInfoEXT & createInfo, Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator, Dispatch const & d ) const { @@ -25418,15 +25462,16 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<const VkShaderCreateInfoEXT *>( &createInfo ), reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ), reinterpret_cast<VkShaderEXT *>( &shader ) ) ); - resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderEXT" ); + resultCheck( result, + VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderEXT", + { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::eIncompatibleShaderBinaryEXT } ); - return createResultValueType( result, shader ); + return ResultValue<VULKAN_HPP_NAMESPACE::ShaderEXT>( static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), std::move( shader ) ); } # ifndef VULKAN_HPP_NO_SMART_HANDLE template <typename Dispatch, typename ShaderEXTAllocator> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE - typename ResultValueType<std::vector<UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>, ShaderEXTAllocator>>::type + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>, ShaderEXTAllocator>> Device::createShadersEXTUnique( VULKAN_HPP_NAMESPACE::ArrayProxy<const VULKAN_HPP_NAMESPACE::ShaderCreateInfoEXT> const & createInfos, Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator, Dispatch const & d ) const @@ -25443,7 +25488,9 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<const VkShaderCreateInfoEXT *>( createInfos.data() ), reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ), reinterpret_cast<VkShaderEXT *>( shaders.data() ) ) ); - resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXTUnique" ); + resultCheck( result, + VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXTUnique", + { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::eIncompatibleShaderBinaryEXT } ); std::vector<UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>, ShaderEXTAllocator> uniqueShaders; uniqueShaders.reserve( createInfos.size() ); ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d ); @@ -25451,15 +25498,15 @@ namespace VULKAN_HPP_NAMESPACE { uniqueShaders.push_back( UniqueHandle<ShaderEXT, Dispatch>( shader, deleter ) ); } - return createResultValueType( result, std::move( uniqueShaders ) ); + return ResultValue<std::vector<UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>, ShaderEXTAllocator>>( + static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), std::move( uniqueShaders ) ); } template < typename Dispatch, typename ShaderEXTAllocator, typename std::enable_if<std::is_same<typename ShaderEXTAllocator::value_type, UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>>::value, int>::type> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE - typename ResultValueType<std::vector<UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>, ShaderEXTAllocator>>::type + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>, ShaderEXTAllocator>> Device::createShadersEXTUnique( VULKAN_HPP_NAMESPACE::ArrayProxy<const VULKAN_HPP_NAMESPACE::ShaderCreateInfoEXT> const & createInfos, Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator, ShaderEXTAllocator & shaderEXTAllocator, @@ -25477,7 +25524,9 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<const VkShaderCreateInfoEXT *>( createInfos.data() ), reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ), reinterpret_cast<VkShaderEXT *>( shaders.data() ) ) ); - resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXTUnique" ); + resultCheck( result, + VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXTUnique", + { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::eIncompatibleShaderBinaryEXT } ); std::vector<UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>, ShaderEXTAllocator> uniqueShaders( shaderEXTAllocator ); uniqueShaders.reserve( createInfos.size() ); ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d ); @@ -25485,12 +25534,13 @@ namespace VULKAN_HPP_NAMESPACE { uniqueShaders.push_back( UniqueHandle<ShaderEXT, Dispatch>( shader, deleter ) ); } - return createResultValueType( result, std::move( uniqueShaders ) ); + return ResultValue<std::vector<UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>, ShaderEXTAllocator>>( + static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), std::move( uniqueShaders ) ); } template <typename Dispatch> - VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>>::type - Device::createShaderEXTUnique( const VULKAN_HPP_NAMESPACE::ShaderCreateInfoEXT & createInfo, + VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>> + Device::createShaderEXTUnique( const VULKAN_HPP_NAMESPACE::ShaderCreateInfoEXT & createInfo, Optional<const VULKAN_HPP_NAMESPACE::AllocationCallbacks> allocator, Dispatch const & d ) const { @@ -25506,10 +25556,13 @@ namespace VULKAN_HPP_NAMESPACE reinterpret_cast<const VkShaderCreateInfoEXT *>( &createInfo ), reinterpret_cast<const VkAllocationCallbacks *>( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) ), reinterpret_cast<VkShaderEXT *>( &shader ) ) ); - resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderEXTUnique" ); + resultCheck( result, + VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderEXTUnique", + { VULKAN_HPP_NAMESPACE::Result::eSuccess, VULKAN_HPP_NAMESPACE::Result::eIncompatibleShaderBinaryEXT } ); - return createResultValueType( result, - UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>( shader, ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) ); + return ResultValue<UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>>( + static_cast<VULKAN_HPP_NAMESPACE::Result>( result ), + UniqueHandle<VULKAN_HPP_NAMESPACE::ShaderEXT, Dispatch>( shader, ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) ); } # endif /* VULKAN_HPP_NO_SMART_HANDLE */ #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25603,7 +25656,7 @@ namespace VULKAN_HPP_NAMESPACE { data.resize( dataSize ); } - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } template <typename Uint8_tAllocator, @@ -25636,7 +25689,7 @@ namespace VULKAN_HPP_NAMESPACE { data.resize( dataSize ); } - return createResultValueType( result, data ); + return createResultValueType( result, std::move( data ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -25961,7 +26014,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template <typename CooperativeMatrixPropertiesKHRAllocator, @@ -26000,7 +26053,7 @@ namespace VULKAN_HPP_NAMESPACE { properties.resize( propertyCount ); } - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -26041,7 +26094,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetScreenBufferPropertiesQNX( m_device, &buffer, reinterpret_cast<VkScreenBufferPropertiesQNX *>( &properties ) ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getScreenBufferPropertiesQNX" ); - return createResultValueType( result, properties ); + return createResultValueType( result, std::move( properties ) ); } template <typename X, typename Y, typename... Z, typename Dispatch> @@ -26059,7 +26112,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetScreenBufferPropertiesQNX( m_device, &buffer, reinterpret_cast<VkScreenBufferPropertiesQNX *>( &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*/ @@ -26116,7 +26169,7 @@ namespace VULKAN_HPP_NAMESPACE { timeDomains.resize( timeDomainCount ); } - return createResultValueType( result, timeDomains ); + return createResultValueType( result, std::move( timeDomains ) ); } template <typename TimeDomainKHRAllocator, @@ -26150,7 +26203,7 @@ namespace VULKAN_HPP_NAMESPACE { timeDomains.resize( timeDomainCount ); } - return createResultValueType( result, timeDomains ); + return createResultValueType( result, std::move( timeDomains ) ); } #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */ @@ -26186,7 +26239,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, timestampInfos.size(), reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsKHR" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template <typename Uint64_tAllocator, @@ -26211,7 +26264,7 @@ namespace VULKAN_HPP_NAMESPACE m_device, timestampInfos.size(), reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( timestampInfos.data() ), timestamps.data(), &maxDeviation ) ); resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsKHR" ); - return createResultValueType( result, data_ ); + return createResultValueType( result, std::move( data_ ) ); } template <typename Dispatch> @@ -26231,7 +26284,7 @@ namespace VULKAN_HPP_NAMESPACE d.vkGetCalibratedTimestampsKHR( m_device, 1, reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( ×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 */ |