mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
commit
dbe01543d6
@ -3879,13 +3879,14 @@ std::string VulkanHppGenerator::constructCallArgumentEnhanced( ParamData const &
|
||||
std::string name = startLowerCase( stripPrefix( param.name, "p" ) );
|
||||
if ( param.len.empty() )
|
||||
{
|
||||
assert( param.arraySizes.empty() && !param.optional );
|
||||
assert( param.arraySizes.empty() );
|
||||
if ( beginsWith( param.type.type, "Vk" ) )
|
||||
{
|
||||
argument = "reinterpret_cast<" + param.type.type + " *>( &" + name + " )";
|
||||
}
|
||||
else
|
||||
{
|
||||
assert( !param.optional );
|
||||
argument = "&" + name;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user