Merge pull request #543 from asuessenbach/union

Add missing handling of unions in readExtensionRequireType.
This commit is contained in:
Andreas Süßenbach 2020-03-13 09:04:36 +01:00 committed by GitHub
commit ce7f49f4c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4647,6 +4647,7 @@ void VulkanHppGenerator::readExtensionRequireType(tinyxml2::XMLElement const* el
} }
break; break;
case TypeCategory::Struct: case TypeCategory::Struct:
case TypeCategory::Union: // unions are listed together with the structures!
{ {
auto structIt = m_structures.find(name); auto structIt = m_structures.find(name);
check(structIt != m_structures.end(), line, "failed to find required struct <" + name + ">"); check(structIt != m_structures.end(), line, "failed to find required struct <" + name + ">");