Merge pull request #799 from asuessenbach/ArrayProxy

Stop mapping const pointer command arguments with indirect len specifiation to ArrayProxy.
This commit is contained in:
Andreas Süßenbach 2020-10-22 10:20:08 +02:00 committed by GitHub
commit 62a9e28264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3566,7 +3566,7 @@ std::string VulkanHppGenerator::constructArgumentListEnhanced( std::vector<Param
argumentList += "const " + stripPrefix( params[i].type.type, "Vk" ) + " & " +
stripPluralS( startLowerCase( stripPrefix( params[i].name, "p" ) ) );
}
else if ( params[i].type.isConstPointer() )
else if ( params[i].type.isConstPointer() && !isParamIndirect( params[i].len, params ) )
{
std::string name = startLowerCase( stripPrefix( params[i].name, "p" ) );
if ( params[i].len.empty() )