mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Added missing support of attribute "comment" in require clause of extensions. (#1504)
This commit is contained in:
parent
52881a3879
commit
25289b1d0d
@ -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() );
|
||||||
|
Loading…
Reference in New Issue
Block a user