Skip to content

Commit 7e0c3d0

Browse files
committed
Add support for a command taking a (non-const) void *.
1 parent 8602fd7 commit 7e0c3d0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

VulkanHppGenerator.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3582,6 +3582,15 @@ std::string VulkanHppGenerator::generateCommand2ReturnsValueValue( std::string c
35823582
{ CommandFlavourFlagBits::enhanced } );
35833583
}
35843584
}
3585+
else if ( m_externalTypes.contains( returnType0 ) )
3586+
{
3587+
if ( returnType1 == "void" )
3588+
{
3589+
// a return type of void *, without any len/vector information, means, it points to some memory where the size of that memory is externally calculated ->
3590+
// can't to an enhanced version
3591+
return generateCommandSetInclusive( name, commandData, initialSkipCount, definition, returnParams, vectorParams, false, {}, raii, false, {} );
3592+
}
3593+
}
35853594
else if ( auto structIt = findByNameOrAlias( m_structs, returnType0 ); structIt != m_structs.end() )
35863595
{
35873596
// the first return param is a single struct

0 commit comments

Comments
 (0)