mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #1138 from asuessenbach/fix
Fix allocator name in generateCommandResultEnumerateChained()
This commit is contained in:
commit
f727d2a43c
@ -3027,8 +3027,9 @@ std::string
|
|||||||
R"( template <typename StructureChain, typename StructureChainAllocator = std::allocator<StructureChain>, typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE${typenameCheck}>
|
R"( template <typename StructureChain, typename StructureChainAllocator = std::allocator<StructureChain>, typename Dispatch = VULKAN_HPP_DEFAULT_DISPATCHER_TYPE${typenameCheck}>
|
||||||
${nodiscard}std::vector<StructureChain, StructureChainAllocator> ${commandName}( ${argumentList} )${const};)";
|
${nodiscard}std::vector<StructureChain, StructureChainAllocator> ${commandName}( ${argumentList} )${const};)";
|
||||||
|
|
||||||
std::string typenameCheck = withAllocator ? ( ", typename B = " + allocatorType +
|
std::string typenameCheck =
|
||||||
", typename std::enable_if<std::is_same<typename B::value_type, " +
|
withAllocator
|
||||||
|
? ( ", typename B = StructureChainAllocator, typename std::enable_if<std::is_same<typename B::value_type, " +
|
||||||
vectorElementType + ">::value, int>::type = 0" )
|
vectorElementType + ">::value, int>::type = 0" )
|
||||||
: "";
|
: "";
|
||||||
|
|
||||||
@ -8458,11 +8459,7 @@ std::string VulkanHppGenerator::generateRAIIHandleCommandResultMultiSuccessWithE
|
|||||||
VULKAN_HPP_NODISCARD std::vector<StructureChain<X, Y, Z...>> ${commandName}( ${argumentList} ) const;
|
VULKAN_HPP_NODISCARD std::vector<StructureChain<X, Y, Z...>> ${commandName}( ${argumentList} ) const;
|
||||||
)";
|
)";
|
||||||
|
|
||||||
return replaceWithMap( declarationTemplate,
|
return replaceWithMap( declarationTemplate, { { "argumentList", argumentList }, { "commandName", commandName } } );
|
||||||
{
|
|
||||||
{ "argumentList", argumentList },
|
|
||||||
{ "commandName", commandName }
|
|
||||||
} );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32464,7 +32464,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
#if !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS )
|
#if !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS )
|
||||||
VULKAN_HPP_CONSTEXPR
|
VULKAN_HPP_CONSTEXPR
|
||||||
ImageSparseMemoryRequirementsInfo2( VULKAN_HPP_NAMESPACE::Image image_ = {} ) VULKAN_HPP_NOEXCEPT : image( image_ )
|
ImageSparseMemoryRequirementsInfo2( VULKAN_HPP_NAMESPACE::Image image_ = {} ) VULKAN_HPP_NOEXCEPT
|
||||||
|
: image( image_ )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
VULKAN_HPP_CONSTEXPR ImageSparseMemoryRequirementsInfo2( ImageSparseMemoryRequirementsInfo2 const & rhs )
|
VULKAN_HPP_CONSTEXPR ImageSparseMemoryRequirementsInfo2( ImageSparseMemoryRequirementsInfo2 const & rhs )
|
||||||
@ -33138,7 +33139,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
#if !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS )
|
#if !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS )
|
||||||
VULKAN_HPP_CONSTEXPR
|
VULKAN_HPP_CONSTEXPR
|
||||||
ImageViewUsageCreateInfo( VULKAN_HPP_NAMESPACE::ImageUsageFlags usage_ = {} ) VULKAN_HPP_NOEXCEPT : usage( usage_ )
|
ImageViewUsageCreateInfo( VULKAN_HPP_NAMESPACE::ImageUsageFlags usage_ = {} ) VULKAN_HPP_NOEXCEPT
|
||||||
|
: usage( usage_ )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
VULKAN_HPP_CONSTEXPR ImageViewUsageCreateInfo( ImageViewUsageCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
VULKAN_HPP_CONSTEXPR ImageViewUsageCreateInfo( ImageViewUsageCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||||
@ -70171,7 +70173,8 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
#if !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS )
|
#if !defined( VULKAN_HPP_NO_STRUCT_CONSTRUCTORS )
|
||||||
VULKAN_HPP_CONSTEXPR
|
VULKAN_HPP_CONSTEXPR
|
||||||
SemaphoreCreateInfo( VULKAN_HPP_NAMESPACE::SemaphoreCreateFlags flags_ = {} ) VULKAN_HPP_NOEXCEPT : flags( flags_ )
|
SemaphoreCreateInfo( VULKAN_HPP_NAMESPACE::SemaphoreCreateFlags flags_ = {} ) VULKAN_HPP_NOEXCEPT
|
||||||
|
: flags( flags_ )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
VULKAN_HPP_CONSTEXPR SemaphoreCreateInfo( SemaphoreCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
VULKAN_HPP_CONSTEXPR SemaphoreCreateInfo( SemaphoreCreateInfo const & rhs ) VULKAN_HPP_NOEXCEPT = default;
|
||||||
|
Loading…
Reference in New Issue
Block a user