@@ -1681,8 +1681,11 @@ void VulkanHppGenerator::extendSpecialCommands( std::string const & name, bool d
16811681 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setDebugUtilsObjectNameEXT( HandleType const & handle, std::string const & name ) const
16821682 {
16831683 static_assert( VULKAN_HPP_NAMESPACE::isVulkanHandleType<HandleType>::value, "HandleType must be a Vulkan handle type" );
1684- VULKAN_HPP_NAMESPACE::DebugUtilsObjectNameInfoEXT nameInfo(
1685- handle.objectType, reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) ), name.c_str() );
1684+ // It might be, that neither constructors, nor setters, nor designated initializers are available... need to explicitly set member by member
1685+ VULKAN_HPP_NAMESPACE::DebugUtilsObjectNameInfoEXT nameInfo;
1686+ nameInfo.objectType = handle.objectType;
1687+ nameInfo.objectHandle = reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) );
1688+ nameInfo.pObjectName = name.c_str();
16861689 return setDebugUtilsObjectNameEXT( nameInfo );
16871690 }
16881691)" );
@@ -1712,8 +1715,11 @@ void VulkanHppGenerator::extendSpecialCommands( std::string const & name, bool d
17121715 Device::setDebugUtilsObjectNameEXT( HandleType const & handle, std::string const & name, Dispatch const & d ) const
17131716 {
17141717 static_assert( VULKAN_HPP_NAMESPACE::isVulkanHandleType<HandleType>::value, "HandleType must be a Vulkan handle type" );
1715- VULKAN_HPP_NAMESPACE::DebugUtilsObjectNameInfoEXT nameInfo(
1716- handle.objectType, reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) ), name.c_str() );
1718+ // It might be, that neither constructors, nor setters, nor designated initializers are available... need to explicitly set member by member
1719+ VULKAN_HPP_NAMESPACE::DebugUtilsObjectNameInfoEXT nameInfo;
1720+ nameInfo.objectType = handle.objectType;
1721+ nameInfo.objectHandle = reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) );
1722+ nameInfo.pObjectName = name.c_str();
17171723 return setDebugUtilsObjectNameEXT( nameInfo, d );
17181724 }
17191725)" );
@@ -1744,8 +1750,13 @@ void VulkanHppGenerator::extendSpecialCommands( std::string const & name, bool d
17441750 Device::setDebugUtilsObjectTagEXT( HandleType const & handle, uint64_t name, TagType const & tag ) const
17451751 {
17461752 static_assert( VULKAN_HPP_NAMESPACE::isVulkanHandleType<HandleType>::value, "HandleType must be a Vulkan handle type" );
1747- VULKAN_HPP_NAMESPACE::DebugUtilsObjectTagInfoEXT tagInfo(
1748- handle.objectType, reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) ), name, sizeof( TagType ), &tag );
1753+ // It might be, that neither constructors, nor setters, nor designated initializers are available... need to explicitly set member by member
1754+ VULKAN_HPP_NAMESPACE::DebugUtilsObjectTagInfoEXT tagInfo;
1755+ tagInfo.objectType = handle.objectType;
1756+ tagInfo.objectHandle = reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) );
1757+ tagInfo.tagName = name;
1758+ tagInfo.tagSize = sizeof( TagType );
1759+ tagInfo.pTag = &tag;
17491760 return setDebugUtilsObjectTagEXT( tagInfo );
17501761 }
17511762)" );
@@ -1775,8 +1786,13 @@ void VulkanHppGenerator::extendSpecialCommands( std::string const & name, bool d
17751786 Device::setDebugUtilsObjectTagEXT( HandleType const & handle, uint64_t name, TagType const & tag, Dispatch const & d ) const
17761787 {
17771788 static_assert( VULKAN_HPP_NAMESPACE::isVulkanHandleType<HandleType>::value, "HandleType must be a Vulkan handle type" );
1778- VULKAN_HPP_NAMESPACE::DebugUtilsObjectTagInfoEXT tagInfo(
1779- handle.objectType, reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) ), name, sizeof( TagType ), &tag );
1789+ // It might be, that neither constructors, nor setters, nor designated initializers are available... need to explicitly set member by member
1790+ VULKAN_HPP_NAMESPACE::DebugUtilsObjectTagInfoEXT tagInfo;
1791+ tagInfo.objectType = handle.objectType;
1792+ tagInfo.objectHandle = reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) );
1793+ tagInfo.tagName = name;
1794+ tagInfo.tagSize = sizeof( TagType );
1795+ tagInfo.pTag = &tag;
17801796 return setDebugUtilsObjectTagEXT( tagInfo, d );
17811797 }
17821798)" );
0 commit comments