From b35470b05fda6e13fde66e7a85e0655f8bfb5efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=BC=C3=9Fenbach?= Date: Wed, 12 Jun 2024 08:41:25 +0200 Subject: [PATCH] Accept type size_t for vector size in vector-describing structure. (#1895) --- VulkanHppGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 221645b..600198e 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -1721,7 +1721,7 @@ bool VulkanHppGenerator::containsUnion( std::string const & type ) const bool VulkanHppGenerator::describesVector( StructureData const & structure, std::string const & type ) const { return ( structure.members.size() == 4 ) && ( structure.members[0].name == "sType" ) && ( structure.members[1].name == "pNext" ) && - structure.members[2].type.isValue() && ( structure.members[2].type.type == "uint32_t" ) && + structure.members[2].type.isValue() && ( ( structure.members[2].type.type == "size_t" ) || ( structure.members[2].type.type == "uint32_t" ) ) && ( type.empty() ? true : ( structure.members[3].type.type == type ) ) && structure.members[3].type.isNonConstPointer() && ( structure.members[3].lenMembers.size() == 1 ) && ( structure.members[3].lenMembers[0].second == 2 ); }