mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-09 14:10:07 +00:00
Fix generation of the standard version of commands to only use the member handle for the first argument. (#1898)
This commit is contained in:
parent
dc6501456a
commit
71031df10a
@ -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" ) ) );
|
||||
|
Loading…
Reference in New Issue
Block a user