mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-25 21:40:04 +00:00
Add missing braces in union constructors on array members. (#1469)
This commit is contained in:
parent
23a13e4707
commit
49a288231b
@ -10024,7 +10024,7 @@ std::string VulkanHppGenerator::generateUnion( std::pair<std::string, StructureD
|
||||
|
||||
static const std::string constructorBySequenceTemplate = R"(
|
||||
VULKAN_HPP_CONSTEXPR ${unionName}( ${arguments} )
|
||||
: ${memberName}( { ${callArguments} } )
|
||||
: ${memberName}{ { { ${callArguments} } } }
|
||||
{})";
|
||||
|
||||
constructors += "\n" + replaceWithMap( constructorBySequenceTemplate,
|
||||
|
@ -12532,20 +12532,21 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
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 )
|
||||
: 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 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 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*/
|
||||
|
Loading…
Reference in New Issue
Block a user