Merge pull request #1453 from asuessenbach/function

Add support for a new class of functions.
This commit is contained in:
Andreas Süßenbach 2022-11-23 08:48:46 +01:00 committed by GitHub
commit 4863951e35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3389,11 +3389,17 @@ std::string VulkanHppGenerator::generateCommandResultSingleSuccessNoErrors( std:
case 0: case 0:
{ {
std::vector<size_t> constPointerParams = determineConstPointerParams( commandData.params ); std::vector<size_t> constPointerParams = determineConstPointerParams( commandData.params );
if ( constPointerParams.empty() ) switch ( constPointerParams.size() )
{ {
case 0:
return generateCommandSetStandardOrEnhanced( return generateCommandSetStandardOrEnhanced(
generateCommandStandard( name, commandData, initialSkipCount, definition ), generateCommandStandard( name, commandData, initialSkipCount, definition ),
generateCommandEnhanced( name, commandData, initialSkipCount, definition, {}, {}, false, false, false, false ) ); generateCommandEnhanced( name, commandData, initialSkipCount, definition, {}, {}, false, false, false, false ) );
case 1:
return generateCommandSetStandardEnhanced(
definition,
generateCommandStandard( name, commandData, initialSkipCount, definition ),
generateCommandEnhanced( name, commandData, initialSkipCount, definition, {}, {}, false, false, false, false ) );
} }
} }
break; break;