From e2066fa002e09b2e2a5e6a4e7a45379f4e2ba36a Mon Sep 17 00:00:00 2001 From: Markus Tavenrath Date: Tue, 26 May 2020 09:47:47 +0200 Subject: [PATCH] Add support for optional non-char arrays --- VulkanHppGenerator.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 21a2ccf..1c51138 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -2767,7 +2767,7 @@ void VulkanHppGenerator::appendFunctionHeaderArgumentEnhancedVector( std::string else { // it's a non-char vector (they are never optional) - assert( !optional ); + //assert( !optional ); if ( singular ) { // in singular case, change from pointer to reference @@ -4571,7 +4571,9 @@ std::map VulkanHppGenerator::determineVectorParamIndices( std::v ( it->len == "null-terminated" ) || ( it->len == "pAllocateInfo->descriptorSetCount" ) || ( it->len == "pAllocateInfo::descriptorSetCount" ) || ( it->len == "pAllocateInfo->commandBufferCount" ) || - ( it->len == "pAllocateInfo::commandBufferCount" ) ); + ( it->len == "pAllocateInfo::commandBufferCount" ) || + ( it->len == "pBuildInfo->geometryCount") + ); } } return vectorParamIndices;