Add support for optional non-char arrays

This commit is contained in:
Markus Tavenrath 2020-05-26 09:47:47 +02:00 committed by Markus Tavenrath
parent 8958396a0c
commit e2066fa002

View File

@ -2767,7 +2767,7 @@ void VulkanHppGenerator::appendFunctionHeaderArgumentEnhancedVector( std::string
else else
{ {
// it's a non-char vector (they are never optional) // it's a non-char vector (they are never optional)
assert( !optional ); //assert( !optional );
if ( singular ) if ( singular )
{ {
// in singular case, change from pointer to reference // in singular case, change from pointer to reference
@ -4571,7 +4571,9 @@ std::map<size_t, size_t> VulkanHppGenerator::determineVectorParamIndices( std::v
( it->len == "null-terminated" ) || ( it->len == "pAllocateInfo->descriptorSetCount" ) || ( it->len == "null-terminated" ) || ( it->len == "pAllocateInfo->descriptorSetCount" ) ||
( it->len == "pAllocateInfo::descriptorSetCount" ) || ( it->len == "pAllocateInfo::descriptorSetCount" ) ||
( it->len == "pAllocateInfo->commandBufferCount" ) || ( it->len == "pAllocateInfo->commandBufferCount" ) ||
( it->len == "pAllocateInfo::commandBufferCount" ) ); ( it->len == "pAllocateInfo::commandBufferCount" ) ||
( it->len == "pBuildInfo->geometryCount")
);
} }
} }
return vectorParamIndices; return vectorParamIndices;