Merge pull request #1069 from asuessenbach/get

Remove restriction on get-commands to start with 'vkGet'
This commit is contained in:
Andreas Süßenbach 2021-09-14 09:38:20 +02:00 committed by GitHub
commit 729550951c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5030,13 +5030,10 @@ std::string VulkanHppGenerator::generateCommandSetVoid0Vector( std::string const
}
else if ( commandData.params[returnParamIndices[0]].type.type != "void" )
{
if ( beginsWith( name, "vkGet" ) )
{
return generateCommandSetStandardEnhanced(
definition,
generateCommandStandard( name, commandData, initialSkipCount, definition ),
generateCommandVoidGetValue( name, commandData, initialSkipCount, definition, {}, returnParamIndices[0] ) );
}
return generateCommandSetStandardEnhanced(
definition,
generateCommandStandard( name, commandData, initialSkipCount, definition ),
generateCommandVoidGetValue( name, commandData, initialSkipCount, definition, {}, returnParamIndices[0] ) );
}
}
return "";