Stop mapping const pointer command arguments with indirect len specifiation to ArrayProxy.

This commit is contained in:
asuessenbach 2020-10-22 09:36:45 +02:00
parent 9d8acb901b
commit c48441d223

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() )