mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Change member initialization lists of structs to use braces {} instead of parentheses () (#1864)
This commit is contained in:
parent
2518f528c0
commit
1bbd615b15
@ -10538,7 +10538,7 @@ std::string VulkanHppGenerator::generateStructConstructors( std::pair<std::strin
|
|||||||
// gather the initializers; skip members with exactly one legal value
|
// gather the initializers; skip members with exactly one legal value
|
||||||
if ( member.value.empty() )
|
if ( member.value.empty() )
|
||||||
{
|
{
|
||||||
initializers.push_back( member.name + "( " + member.name + "_ )" );
|
initializers.push_back( member.name + "{ " + member.name + "_ }" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto pNextIt = std::find_if( structData.second.members.begin(), structData.second.members.end(), []( MemberData const & md ) { return md.name == "pNext"; } );
|
auto pNextIt = std::find_if( structData.second.members.begin(), structData.second.members.end(), []( MemberData const & md ) { return md.name == "pNext"; } );
|
||||||
@ -10924,11 +10924,11 @@ std::string VulkanHppGenerator::generateStructure( std::pair<std::string, Struct
|
|||||||
VULKAN_HPP_NAMESPACE::DeviceFaultVendorInfoEXT * pVendorInfos_ = {},
|
VULKAN_HPP_NAMESPACE::DeviceFaultVendorInfoEXT * pVendorInfos_ = {},
|
||||||
void * pVendorBinaryData_ = {},
|
void * pVendorBinaryData_ = {},
|
||||||
void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT
|
void * pNext_ = nullptr ) VULKAN_HPP_NOEXCEPT
|
||||||
: pNext( pNext_ )
|
: pNext{ pNext_ }
|
||||||
, description( description_ )
|
, description{ description_ }
|
||||||
, pAddressInfos( pAddressInfos_ )
|
, pAddressInfos{ pAddressInfos_ }
|
||||||
, pVendorInfos( pVendorInfos_ )
|
, pVendorInfos{ pVendorInfos_ }
|
||||||
, pVendorBinaryData( pVendorBinaryData_ )
|
, pVendorBinaryData{ pVendorBinaryData_ }
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -10943,10 +10943,10 @@ std::string VulkanHppGenerator::generateStructure( std::pair<std::string, Struct
|
|||||||
DeviceFaultInfoEXT & operator=( DeviceFaultInfoEXT const & ) = delete;
|
DeviceFaultInfoEXT & operator=( DeviceFaultInfoEXT const & ) = delete;
|
||||||
|
|
||||||
DeviceFaultInfoEXT( DeviceFaultInfoEXT && rhs ) VULKAN_HPP_NOEXCEPT
|
DeviceFaultInfoEXT( DeviceFaultInfoEXT && rhs ) VULKAN_HPP_NOEXCEPT
|
||||||
: pNext( rhs.pNext )
|
: pNext{ rhs.pNext }
|
||||||
, pAddressInfos( rhs.pAddressInfos )
|
, pAddressInfos{ rhs.pAddressInfos }
|
||||||
, pVendorInfos( rhs.pVendorInfos )
|
, pVendorInfos{ rhs.pVendorInfos }
|
||||||
, pVendorBinaryData( rhs.pVendorBinaryData )
|
, pVendorBinaryData{ rhs.pVendorBinaryData }
|
||||||
{
|
{
|
||||||
memcpy( description, rhs.description, VK_MAX_DESCRIPTION_SIZE );
|
memcpy( description, rhs.description, VK_MAX_DESCRIPTION_SIZE );
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user