Add missing braces in union constructors on array members. (#1469)

This commit is contained in:
Andreas Süßenbach 2022-12-13 10:03:05 +01:00 committed by GitHub
parent 23a13e4707
commit 49a288231b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -10024,7 +10024,7 @@ std::string VulkanHppGenerator::generateUnion( std::pair<std::string, StructureD
static const std::string constructorBySequenceTemplate = R"( static const std::string constructorBySequenceTemplate = R"(
VULKAN_HPP_CONSTEXPR ${unionName}( ${arguments} ) VULKAN_HPP_CONSTEXPR ${unionName}( ${arguments} )
: ${memberName}( { ${callArguments} } ) : ${memberName}{ { { ${callArguments} } } }
{})"; {})";
constructors += "\n" + replaceWithMap( constructorBySequenceTemplate, constructors += "\n" + replaceWithMap( constructorBySequenceTemplate,

View File

@ -12532,20 +12532,21 @@ namespace VULKAN_HPP_NAMESPACE
VULKAN_HPP_CONSTEXPR_14 ClearColorValue( const std::array<float, 4> & float32_ = {} ) : float32( float32_ ) {} VULKAN_HPP_CONSTEXPR_14 ClearColorValue( const std::array<float, 4> & float32_ = {} ) : float32( float32_ ) {}
VULKAN_HPP_CONSTEXPR ClearColorValue( float float32_0, float float32_1, float float32_2, float float32_3 ) VULKAN_HPP_CONSTEXPR ClearColorValue( float float32_0, float float32_1, float float32_2, float float32_3 )
: float32( { float32_0, float32_1, float32_2, float32_3 } ) : float32{ { { float32_0, float32_1, float32_2, float32_3 } } }
{ {
} }
VULKAN_HPP_CONSTEXPR_14 ClearColorValue( const std::array<int32_t, 4> & int32_ ) : int32( int32_ ) {} VULKAN_HPP_CONSTEXPR_14 ClearColorValue( const std::array<int32_t, 4> & int32_ ) : int32( int32_ ) {}
VULKAN_HPP_CONSTEXPR ClearColorValue( int32_t int32_0, int32_t int32_1, int32_t int32_2, int32_t int32_3 ) : int32( { int32_0, int32_1, int32_2, int32_3 } ) VULKAN_HPP_CONSTEXPR ClearColorValue( int32_t int32_0, int32_t int32_1, int32_t int32_2, int32_t int32_3 )
: int32{ { { int32_0, int32_1, int32_2, int32_3 } } }
{ {
} }
VULKAN_HPP_CONSTEXPR_14 ClearColorValue( const std::array<uint32_t, 4> & uint32_ ) : uint32( uint32_ ) {} VULKAN_HPP_CONSTEXPR_14 ClearColorValue( const std::array<uint32_t, 4> & uint32_ ) : uint32( uint32_ ) {}
VULKAN_HPP_CONSTEXPR ClearColorValue( uint32_t uint32_0, uint32_t uint32_1, uint32_t uint32_2, uint32_t uint32_3 ) VULKAN_HPP_CONSTEXPR ClearColorValue( uint32_t uint32_0, uint32_t uint32_1, uint32_t uint32_2, uint32_t uint32_3 )
: uint32( { uint32_0, uint32_1, uint32_2, uint32_3 } ) : uint32{ { { uint32_0, uint32_1, uint32_2, uint32_3 } } }
{ {
} }
#endif /*VULKAN_HPP_NO_UNION_CONSTRUCTORS*/ #endif /*VULKAN_HPP_NO_UNION_CONSTRUCTORS*/