Added missing support of attribute "comment" in require clause of extensions. (#1504)

This commit is contained in:
Andreas Süßenbach 2023-02-15 17:13:02 +01:00 committed by GitHub
parent 52881a3879
commit 25289b1d0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10828,7 +10828,7 @@ void VulkanHppGenerator::readExtensionsExtensionRequire( tinyxml2::XMLElement co
{ {
int line = element->GetLineNum(); int line = element->GetLineNum();
std::map<std::string, std::string> attributes = getAttributes( element ); std::map<std::string, std::string> attributes = getAttributes( element );
checkAttributes( line, attributes, {}, { { "depends", {} }, { "extension", {} }, { "feature", {} } } ); checkAttributes( line, attributes, {}, { { "comment", {}}, { "depends", {} }, { "extension", {} }, { "feature", {} } } );
std::vector<tinyxml2::XMLElement const *> children = getChildElements( element ); std::vector<tinyxml2::XMLElement const *> children = getChildElements( element );
checkElements( line, children, {}, { "command", "comment", "enum", "type" } ); checkElements( line, children, {}, { "command", "comment", "enum", "type" } );
@ -10849,9 +10849,8 @@ void VulkanHppGenerator::readExtensionsExtensionRequire( tinyxml2::XMLElement co
"required extension <" + d + "> already listed" ); "required extension <" + d + "> already listed" );
} }
} }
else else if ( attribute.first == "feature" )
{ {
assert( attribute.first == "feature" );
if ( m_features.find( attribute.second ) != m_features.end() ) if ( m_features.find( attribute.second ) != m_features.end() )
{ {
assert( depends.empty() ); assert( depends.empty() );