Add missing handling of unions in readExtensionRequireType.

This commit is contained in:
asuessenbach 2020-03-13 08:54:54 +01:00
parent 7d5c399cd7
commit 7826e58909

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 + ">");