Merge pull request #783 from asuessenbach/refactor

Refactor commands that get a handle which has no create or destroy function.
This commit is contained in:
Andreas Süßenbach
2020-10-20 09:26:21 +02:00
committed by GitHub
2 changed files with 21 additions and 11 deletions

View File

@@ -1207,6 +1207,14 @@ void VulkanHppGenerator::appendCommand( std::string & str,
appendCommandUnique( str, name, commandData, nonConstPointerParamIndices[0], definition );
appendedFunction = true;
}
else if ( commandData.returnType == "void" )
{
// it's a handle type, but without construction and destruction function; it's just get
assert( beginsWith( name, "vkGet" ) );
appendCommandStandardAndEnhanced(
str, name, commandData, definition, vectorParamIndices, nonConstPointerParamIndices );
appendedFunction = true;
}
}
else if ( isStructureChainAnchor( commandData.params[nonConstPointerParamIndices[0]].type.type ) )
{