Fix generation of the standard version of commands to only use the member handle for the first argument. (#1898)

This commit is contained in:
Andreas Süßenbach 2024-06-12 17:31:32 +02:00 committed by GitHub
parent dc6501456a
commit 71031df10a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2805,7 +2805,7 @@ std::string VulkanHppGenerator::generateCallArgumentsStandard( std::string const
std::vector<std::string> arguments;
for ( auto const & param : params )
{
if ( ( param.type.type == handle ) && param.type.isValue() )
if ( arguments.empty() && ( param.type.type == handle ) && param.type.isValue() )
{
assert( param.arraySizes.empty() && param.lenExpression.empty() );
arguments.push_back( "m_" + startLowerCase( stripPrefix( param.type.type, "Vk" ) ) );