Merge pull request #749 from asuessenbach/hotfix

correct value-check of parameters
This commit is contained in:
Andreas Süßenbach 2020-09-26 18:52:59 +02:00 committed by GitHub
commit bb7485b238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;