From 25289b1d0d45cc05ce44a4b4cf221b8fe375fa70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=BC=C3=9Fenbach?= Date: Wed, 15 Feb 2023 17:13:02 +0100 Subject: [PATCH] Added missing support of attribute "comment" in require clause of extensions. (#1504) --- VulkanHppGenerator.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index a0124e9..284b0d1 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -10828,7 +10828,7 @@ void VulkanHppGenerator::readExtensionsExtensionRequire( tinyxml2::XMLElement co { int line = element->GetLineNum(); std::map attributes = getAttributes( element ); - checkAttributes( line, attributes, {}, { { "depends", {} }, { "extension", {} }, { "feature", {} } } ); + checkAttributes( line, attributes, {}, { { "comment", {}}, { "depends", {} }, { "extension", {} }, { "feature", {} } } ); std::vector children = getChildElements( element ); checkElements( line, children, {}, { "command", "comment", "enum", "type" } ); @@ -10849,9 +10849,8 @@ void VulkanHppGenerator::readExtensionsExtensionRequire( tinyxml2::XMLElement co "required extension <" + d + "> already listed" ); } } - else + else if ( attribute.first == "feature" ) { - assert( attribute.first == "feature" ); if ( m_features.find( attribute.second ) != m_features.end() ) { assert( depends.empty() );