Add missing alias classes for raii-handle wrappers (#2148)

This commit is contained in:
Andreas Süßenbach 2025-04-29 13:41:12 +02:00 committed by GitHub
parent 6dc0a4e2cf
commit a804eaa9b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 3 deletions

View File

@ -10303,10 +10303,11 @@ std::string VulkanHppGenerator::generateRAIIHandleForwardDeclarations( std::vect
{ {
for ( auto const & type : require.types ) for ( auto const & type : require.types )
{ {
auto handleIt = m_handles.find( type.name ); auto handleIt = findByNameOrAlias( m_handles, type.name );
if ( handleIt != m_handles.end() ) if ( handleIt != m_handles.end() )
{ {
str += " class " + stripPrefix( handleIt->first, "Vk" ) + ";\n"; str += ( handleIt->first == type.name ) ? ( " class " + stripPrefix( handleIt->first, "Vk" ) + ";\n" )
: ( " using " + stripPrefix( type.name, "Vk" ) + " = " + stripPrefix( handleIt->first, "Vk" ) + ";\n" );
} }
} }
} }

View File

@ -2885,12 +2885,18 @@ namespace VULKAN_HPP_NAMESPACE
class CuModuleNVX; class CuModuleNVX;
class CuFunctionNVX; class CuFunctionNVX;
//=== VK_KHR_descriptor_update_template ===
using DescriptorUpdateTemplateKHR = DescriptorUpdateTemplate;
//=== VK_EXT_debug_utils === //=== VK_EXT_debug_utils ===
class DebugUtilsMessengerEXT; class DebugUtilsMessengerEXT;
//=== VK_KHR_acceleration_structure === //=== VK_KHR_acceleration_structure ===
class AccelerationStructureKHR; class AccelerationStructureKHR;
//=== VK_KHR_sampler_ycbcr_conversion ===
using SamplerYcbcrConversionKHR = SamplerYcbcrConversion;
//=== VK_EXT_validation_cache === //=== VK_EXT_validation_cache ===
class ValidationCacheEXT; class ValidationCacheEXT;
@ -2906,6 +2912,9 @@ namespace VULKAN_HPP_NAMESPACE
//=== VK_NV_device_generated_commands === //=== VK_NV_device_generated_commands ===
class IndirectCommandsLayoutNV; class IndirectCommandsLayoutNV;
//=== VK_EXT_private_data ===
using PrivateDataSlotEXT = PrivateDataSlot;
# if defined( VK_ENABLE_BETA_EXTENSIONS ) # if defined( VK_ENABLE_BETA_EXTENSIONS )
//=== VK_NV_cuda_kernel_launch === //=== VK_NV_cuda_kernel_launch ===
class CudaModuleNV; class CudaModuleNV;