Refactor functions returning a vector of handles.
This commit is contained in:
@@ -52101,36 +52101,38 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
VULKAN_HPP_NAMESPACE::CommandBuffer * pCommandBuffers,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template <typename Allocator = std::allocator<CommandBuffer>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS typename ResultValueType<std::vector<CommandBuffer, Allocator>>::type
|
||||
template <typename CommandBufferAllocator = std::allocator<CommandBuffer>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS
|
||||
typename ResultValueType<std::vector<CommandBuffer, CommandBufferAllocator>>::type
|
||||
allocateCommandBuffers( const CommandBufferAllocateInfo & allocateInfo,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
template <typename Allocator = std::allocator<CommandBuffer>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename B = Allocator,
|
||||
template <typename CommandBufferAllocator = std::allocator<CommandBuffer>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename B = CommandBufferAllocator,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, CommandBuffer>::value, int>::type = 0>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS typename ResultValueType<std::vector<CommandBuffer, Allocator>>::type
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS
|
||||
typename ResultValueType<std::vector<CommandBuffer, CommandBufferAllocator>>::type
|
||||
allocateCommandBuffers( const CommandBufferAllocateInfo & allocateInfo,
|
||||
Allocator const & vectorAllocator,
|
||||
CommandBufferAllocator & commandBuffersAllocator,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
# ifndef VULKAN_HPP_NO_SMART_HANDLE
|
||||
template <typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename Allocator = std::allocator<UniqueHandle<CommandBuffer, Dispatch>>>
|
||||
template <typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename CommandBufferAllocator = std::allocator<UniqueHandle<CommandBuffer, Dispatch>>>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS
|
||||
typename ResultValueType<std::vector<UniqueHandle<CommandBuffer, Dispatch>, Allocator>>::type
|
||||
typename ResultValueType<std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator>>::type
|
||||
allocateCommandBuffersUnique( const CommandBufferAllocateInfo & allocateInfo,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
template <
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename Allocator = std::allocator<UniqueHandle<CommandBuffer, Dispatch>>,
|
||||
typename B = Allocator,
|
||||
typename CommandBufferAllocator = std::allocator<UniqueHandle<CommandBuffer, Dispatch>>,
|
||||
typename B = CommandBufferAllocator,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, UniqueHandle<CommandBuffer, Dispatch>>::value,
|
||||
int>::type = 0>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS
|
||||
typename ResultValueType<std::vector<UniqueHandle<CommandBuffer, Dispatch>, Allocator>>::type
|
||||
typename ResultValueType<std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator>>::type
|
||||
allocateCommandBuffersUnique( const CommandBufferAllocateInfo & allocateInfo,
|
||||
Allocator const & vectorAllocator,
|
||||
CommandBufferAllocator & commandBuffersAllocator,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
# endif /*VULKAN_HPP_NO_SMART_HANDLE*/
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
@@ -52141,36 +52143,38 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
VULKAN_HPP_NAMESPACE::DescriptorSet * pDescriptorSets,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const VULKAN_HPP_NOEXCEPT;
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template <typename Allocator = std::allocator<DescriptorSet>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS typename ResultValueType<std::vector<DescriptorSet, Allocator>>::type
|
||||
template <typename DescriptorSetAllocator = std::allocator<DescriptorSet>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS
|
||||
typename ResultValueType<std::vector<DescriptorSet, DescriptorSetAllocator>>::type
|
||||
allocateDescriptorSets( const DescriptorSetAllocateInfo & allocateInfo,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
template <typename Allocator = std::allocator<DescriptorSet>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename B = Allocator,
|
||||
template <typename DescriptorSetAllocator = std::allocator<DescriptorSet>,
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename B = DescriptorSetAllocator,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, DescriptorSet>::value, int>::type = 0>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS typename ResultValueType<std::vector<DescriptorSet, Allocator>>::type
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS
|
||||
typename ResultValueType<std::vector<DescriptorSet, DescriptorSetAllocator>>::type
|
||||
allocateDescriptorSets( const DescriptorSetAllocateInfo & allocateInfo,
|
||||
Allocator const & vectorAllocator,
|
||||
DescriptorSetAllocator & descriptorSetsAllocator,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
# ifndef VULKAN_HPP_NO_SMART_HANDLE
|
||||
template <typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename Allocator = std::allocator<UniqueHandle<DescriptorSet, Dispatch>>>
|
||||
template <typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename DescriptorSetAllocator = std::allocator<UniqueHandle<DescriptorSet, Dispatch>>>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS
|
||||
typename ResultValueType<std::vector<UniqueHandle<DescriptorSet, Dispatch>, Allocator>>::type
|
||||
typename ResultValueType<std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator>>::type
|
||||
allocateDescriptorSetsUnique( const DescriptorSetAllocateInfo & allocateInfo,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
template <
|
||||
typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE,
|
||||
typename Allocator = std::allocator<UniqueHandle<DescriptorSet, Dispatch>>,
|
||||
typename B = Allocator,
|
||||
typename DescriptorSetAllocator = std::allocator<UniqueHandle<DescriptorSet, Dispatch>>,
|
||||
typename B = DescriptorSetAllocator,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, UniqueHandle<DescriptorSet, Dispatch>>::value,
|
||||
int>::type = 0>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS
|
||||
typename ResultValueType<std::vector<UniqueHandle<DescriptorSet, Dispatch>, Allocator>>::type
|
||||
typename ResultValueType<std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator>>::type
|
||||
allocateDescriptorSetsUnique( const DescriptorSetAllocateInfo & allocateInfo,
|
||||
Allocator const & vectorAllocator,
|
||||
DescriptorSetAllocator & descriptorSetsAllocator,
|
||||
Dispatch const & d VULKAN_HPP_DEFAULT_DISPATCHER_ASSIGNMENT ) const;
|
||||
# endif /*VULKAN_HPP_NO_SMART_HANDLE*/
|
||||
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
|
||||
@@ -92462,45 +92466,49 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
reinterpret_cast<const VkCommandBufferAllocateInfo *>( pAllocateInfo ),
|
||||
reinterpret_cast<VkCommandBuffer *>( pCommandBuffers ) ) );
|
||||
}
|
||||
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template <typename Allocator, typename Dispatch>
|
||||
template <typename CommandBufferAllocator, typename Dispatch>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE
|
||||
typename ResultValueType<std::vector<CommandBuffer, Allocator>>::type
|
||||
typename ResultValueType<std::vector<CommandBuffer, CommandBufferAllocator>>::type
|
||||
Device::allocateCommandBuffers( const CommandBufferAllocateInfo & allocateInfo, Dispatch const & d ) const
|
||||
{
|
||||
std::vector<CommandBuffer, Allocator> commandBuffers( allocateInfo.commandBufferCount );
|
||||
Result result = static_cast<Result>(
|
||||
std::vector<CommandBuffer, CommandBufferAllocator> commandBuffers( allocateInfo.commandBufferCount );
|
||||
Result result = static_cast<Result>(
|
||||
d.vkAllocateCommandBuffers( m_device,
|
||||
reinterpret_cast<const VkCommandBufferAllocateInfo *>( &allocateInfo ),
|
||||
reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) );
|
||||
return createResultValue( result, commandBuffers, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffers" );
|
||||
}
|
||||
template <typename Allocator,
|
||||
|
||||
template <typename CommandBufferAllocator,
|
||||
typename Dispatch,
|
||||
typename B,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, CommandBuffer>::value, int>::type>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE
|
||||
typename ResultValueType<std::vector<CommandBuffer, Allocator>>::type
|
||||
typename ResultValueType<std::vector<CommandBuffer, CommandBufferAllocator>>::type
|
||||
Device::allocateCommandBuffers( const CommandBufferAllocateInfo & allocateInfo,
|
||||
Allocator const & vectorAllocator,
|
||||
CommandBufferAllocator & commandBuffersAllocator,
|
||||
Dispatch const & d ) const
|
||||
{
|
||||
std::vector<CommandBuffer, Allocator> commandBuffers( allocateInfo.commandBufferCount, vectorAllocator );
|
||||
Result result = static_cast<Result>(
|
||||
std::vector<CommandBuffer, CommandBufferAllocator> commandBuffers( allocateInfo.commandBufferCount,
|
||||
commandBuffersAllocator );
|
||||
Result result = static_cast<Result>(
|
||||
d.vkAllocateCommandBuffers( m_device,
|
||||
reinterpret_cast<const VkCommandBufferAllocateInfo *>( &allocateInfo ),
|
||||
reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) );
|
||||
return createResultValue( result, commandBuffers, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffers" );
|
||||
}
|
||||
|
||||
# ifndef VULKAN_HPP_NO_SMART_HANDLE
|
||||
template <typename Dispatch, typename Allocator>
|
||||
template <typename Dispatch, typename CommandBufferAllocator>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE
|
||||
typename ResultValueType<std::vector<UniqueHandle<CommandBuffer, Dispatch>, Allocator>>::type
|
||||
typename ResultValueType<std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator>>::type
|
||||
Device::allocateCommandBuffersUnique( const CommandBufferAllocateInfo & allocateInfo, Dispatch const & d ) const
|
||||
{
|
||||
std::vector<UniqueHandle<CommandBuffer, Dispatch>, Allocator> uniqueCommandBuffers;
|
||||
std::vector<CommandBuffer> commandBuffers( allocateInfo.commandBufferCount );
|
||||
Result result = static_cast<Result>(
|
||||
std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator> uniqueCommandBuffers;
|
||||
std::vector<CommandBuffer> commandBuffers( allocateInfo.commandBufferCount );
|
||||
Result result = static_cast<Result>(
|
||||
d.vkAllocateCommandBuffers( m_device,
|
||||
reinterpret_cast<const VkCommandBufferAllocateInfo *>( &allocateInfo ),
|
||||
reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) );
|
||||
@@ -92513,24 +92521,25 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
uniqueCommandBuffers.push_back( UniqueHandle<CommandBuffer, Dispatch>( commandBuffers[i], deleter ) );
|
||||
}
|
||||
}
|
||||
|
||||
return createResultValue(
|
||||
result, std::move( uniqueCommandBuffers ), VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffersUnique" );
|
||||
}
|
||||
|
||||
template <typename Dispatch,
|
||||
typename Allocator,
|
||||
typename CommandBufferAllocator,
|
||||
typename B,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, UniqueHandle<CommandBuffer, Dispatch>>::value,
|
||||
int>::type>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE
|
||||
typename ResultValueType<std::vector<UniqueHandle<CommandBuffer, Dispatch>, Allocator>>::type
|
||||
typename ResultValueType<std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator>>::type
|
||||
Device::allocateCommandBuffersUnique( const CommandBufferAllocateInfo & allocateInfo,
|
||||
Allocator const & vectorAllocator,
|
||||
CommandBufferAllocator & commandBuffersAllocator,
|
||||
Dispatch const & d ) const
|
||||
{
|
||||
std::vector<UniqueHandle<CommandBuffer, Dispatch>, Allocator> uniqueCommandBuffers( vectorAllocator );
|
||||
std::vector<CommandBuffer> commandBuffers( allocateInfo.commandBufferCount );
|
||||
Result result = static_cast<Result>(
|
||||
std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator> uniqueCommandBuffers(
|
||||
commandBuffersAllocator );
|
||||
std::vector<CommandBuffer> commandBuffers( allocateInfo.commandBufferCount );
|
||||
Result result = static_cast<Result>(
|
||||
d.vkAllocateCommandBuffers( m_device,
|
||||
reinterpret_cast<const VkCommandBufferAllocateInfo *>( &allocateInfo ),
|
||||
reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) );
|
||||
@@ -92543,7 +92552,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
uniqueCommandBuffers.push_back( UniqueHandle<CommandBuffer, Dispatch>( commandBuffers[i], deleter ) );
|
||||
}
|
||||
}
|
||||
|
||||
return createResultValue(
|
||||
result, std::move( uniqueCommandBuffers ), VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffersUnique" );
|
||||
}
|
||||
@@ -92561,45 +92569,49 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
reinterpret_cast<const VkDescriptorSetAllocateInfo *>( pAllocateInfo ),
|
||||
reinterpret_cast<VkDescriptorSet *>( pDescriptorSets ) ) );
|
||||
}
|
||||
|
||||
#ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
|
||||
template <typename Allocator, typename Dispatch>
|
||||
template <typename DescriptorSetAllocator, typename Dispatch>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE
|
||||
typename ResultValueType<std::vector<DescriptorSet, Allocator>>::type
|
||||
typename ResultValueType<std::vector<DescriptorSet, DescriptorSetAllocator>>::type
|
||||
Device::allocateDescriptorSets( const DescriptorSetAllocateInfo & allocateInfo, Dispatch const & d ) const
|
||||
{
|
||||
std::vector<DescriptorSet, Allocator> descriptorSets( allocateInfo.descriptorSetCount );
|
||||
Result result = static_cast<Result>(
|
||||
std::vector<DescriptorSet, DescriptorSetAllocator> descriptorSets( allocateInfo.descriptorSetCount );
|
||||
Result result = static_cast<Result>(
|
||||
d.vkAllocateDescriptorSets( m_device,
|
||||
reinterpret_cast<const VkDescriptorSetAllocateInfo *>( &allocateInfo ),
|
||||
reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) );
|
||||
return createResultValue( result, descriptorSets, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSets" );
|
||||
}
|
||||
template <typename Allocator,
|
||||
|
||||
template <typename DescriptorSetAllocator,
|
||||
typename Dispatch,
|
||||
typename B,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, DescriptorSet>::value, int>::type>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE
|
||||
typename ResultValueType<std::vector<DescriptorSet, Allocator>>::type
|
||||
typename ResultValueType<std::vector<DescriptorSet, DescriptorSetAllocator>>::type
|
||||
Device::allocateDescriptorSets( const DescriptorSetAllocateInfo & allocateInfo,
|
||||
Allocator const & vectorAllocator,
|
||||
DescriptorSetAllocator & descriptorSetsAllocator,
|
||||
Dispatch const & d ) const
|
||||
{
|
||||
std::vector<DescriptorSet, Allocator> descriptorSets( allocateInfo.descriptorSetCount, vectorAllocator );
|
||||
Result result = static_cast<Result>(
|
||||
std::vector<DescriptorSet, DescriptorSetAllocator> descriptorSets( allocateInfo.descriptorSetCount,
|
||||
descriptorSetsAllocator );
|
||||
Result result = static_cast<Result>(
|
||||
d.vkAllocateDescriptorSets( m_device,
|
||||
reinterpret_cast<const VkDescriptorSetAllocateInfo *>( &allocateInfo ),
|
||||
reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) );
|
||||
return createResultValue( result, descriptorSets, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSets" );
|
||||
}
|
||||
|
||||
# ifndef VULKAN_HPP_NO_SMART_HANDLE
|
||||
template <typename Dispatch, typename Allocator>
|
||||
template <typename Dispatch, typename DescriptorSetAllocator>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE
|
||||
typename ResultValueType<std::vector<UniqueHandle<DescriptorSet, Dispatch>, Allocator>>::type
|
||||
typename ResultValueType<std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator>>::type
|
||||
Device::allocateDescriptorSetsUnique( const DescriptorSetAllocateInfo & allocateInfo, Dispatch const & d ) const
|
||||
{
|
||||
std::vector<UniqueHandle<DescriptorSet, Dispatch>, Allocator> uniqueDescriptorSets;
|
||||
std::vector<DescriptorSet> descriptorSets( allocateInfo.descriptorSetCount );
|
||||
Result result = static_cast<Result>(
|
||||
std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator> uniqueDescriptorSets;
|
||||
std::vector<DescriptorSet> descriptorSets( allocateInfo.descriptorSetCount );
|
||||
Result result = static_cast<Result>(
|
||||
d.vkAllocateDescriptorSets( m_device,
|
||||
reinterpret_cast<const VkDescriptorSetAllocateInfo *>( &allocateInfo ),
|
||||
reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) );
|
||||
@@ -92612,24 +92624,25 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
uniqueDescriptorSets.push_back( UniqueHandle<DescriptorSet, Dispatch>( descriptorSets[i], deleter ) );
|
||||
}
|
||||
}
|
||||
|
||||
return createResultValue(
|
||||
result, std::move( uniqueDescriptorSets ), VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSetsUnique" );
|
||||
}
|
||||
|
||||
template <typename Dispatch,
|
||||
typename Allocator,
|
||||
typename DescriptorSetAllocator,
|
||||
typename B,
|
||||
typename std::enable_if<std::is_same<typename B::value_type, UniqueHandle<DescriptorSet, Dispatch>>::value,
|
||||
int>::type>
|
||||
VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE
|
||||
typename ResultValueType<std::vector<UniqueHandle<DescriptorSet, Dispatch>, Allocator>>::type
|
||||
typename ResultValueType<std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator>>::type
|
||||
Device::allocateDescriptorSetsUnique( const DescriptorSetAllocateInfo & allocateInfo,
|
||||
Allocator const & vectorAllocator,
|
||||
DescriptorSetAllocator & descriptorSetsAllocator,
|
||||
Dispatch const & d ) const
|
||||
{
|
||||
std::vector<UniqueHandle<DescriptorSet, Dispatch>, Allocator> uniqueDescriptorSets( vectorAllocator );
|
||||
std::vector<DescriptorSet> descriptorSets( allocateInfo.descriptorSetCount );
|
||||
Result result = static_cast<Result>(
|
||||
std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator> uniqueDescriptorSets(
|
||||
descriptorSetsAllocator );
|
||||
std::vector<DescriptorSet> descriptorSets( allocateInfo.descriptorSetCount );
|
||||
Result result = static_cast<Result>(
|
||||
d.vkAllocateDescriptorSets( m_device,
|
||||
reinterpret_cast<const VkDescriptorSetAllocateInfo *>( &allocateInfo ),
|
||||
reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) );
|
||||
@@ -92642,7 +92655,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
uniqueDescriptorSets.push_back( UniqueHandle<DescriptorSet, Dispatch>( descriptorSets[i], deleter ) );
|
||||
}
|
||||
}
|
||||
|
||||
return createResultValue(
|
||||
result, std::move( uniqueDescriptorSets ), VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSetsUnique" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user