Refactor trivial functions returning a VkResult.

This commit is contained in:
asuessenbach
2020-10-12 23:09:07 +02:00
parent c3f83db9d1
commit c77158525b
2 changed files with 16 additions and 12 deletions

View File

@@ -1200,10 +1200,9 @@ void VulkanHppGenerator::appendCommand( std::string & str,
appendCommandTrivialVoid( str, name, commandData, definition );
appendedFunction = true;
}
else if ( commandData.successCodes.size() == 1 )
else if (commandData.returnType == "VkResult")
{
assert( commandData.returnType == "VkResult" );
// function returning something
// function returning a result
appendCommandTrivial( str, name, commandData, definition );
appendedFunction = true;
}