From 71031df10a0c366317c24d7094cf72b9abf61856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=BC=C3=9Fenbach?= Date: Wed, 12 Jun 2024 17:31:32 +0200 Subject: [PATCH] Fix generation of the standard version of commands to only use the member handle for the first argument. (#1898) --- VulkanHppGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 9a26a6d..c439c45 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -2805,7 +2805,7 @@ std::string VulkanHppGenerator::generateCallArgumentsStandard( std::string const std::vector 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" ) ) );