diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index cb95b00..dbe6ac2 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -15496,13 +15496,17 @@ namespace template typename std::vector>::const_iterator find( std::vector> const & values, std::string const & name ) { - return std::find_if( values.begin(), values.end(), [&name]( std::pair const & value ) { return value.first == name; } ); + return std::find_if( values.begin(), + values.end(), + [&name]( std::pair const & value ) { return ( value.first == name ) || value.second.aliases.contains( name ); } ); } template typename std::vector>::iterator find( std::vector> & values, std::string const & name ) { - return std::find_if( values.begin(), values.end(), [&name]( std::pair const & value ) { return value.first == name; } ); + return std::find_if( values.begin(), + values.end(), + [&name]( std::pair const & value ) { return ( value.first == name ) || value.second.aliases.contains( name ); } ); } std::string generateCArraySizes( std::vector const & sizes )