correct value-check of parameters

+ add missing array sizes for parameters
This commit is contained in:
asuessenbach 2020-09-25 23:45:55 +02:00
parent 557434e037
commit 865069ccc3
2 changed files with 3 additions and 2 deletions

View File

@ -3764,7 +3764,8 @@ std::string VulkanHppGenerator::constructArgumentListEnhanced( std::vector<Param
} }
else else
{ {
argumentList += "VULKAN_HPP_NAMESPACE::" + stripPrefix( params[i].type.type, "Vk" ) + " " + params[i].name; argumentList += "VULKAN_HPP_NAMESPACE::" + stripPrefix( params[i].type.type, "Vk" ) + " " + params[i].name +
constructCArraySizes( params[i].arraySizes );
} }
} }
else else

View File

@ -93,7 +93,7 @@ private:
bool isValue() const bool isValue() const
{ {
return prefix.empty() && postfix.empty(); return ( ( prefix.find( '*' ) == std::string::npos ) && ( postfix.find( '*' ) == std::string::npos ) );
} }
std::string prefix; std::string prefix;