From 63aa7ede2887dda69dda8aa5f7e49c812687bb8d Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Sun, 27 Sep 2020 00:33:38 +0200 Subject: [PATCH] Improved handling of function parameters with array sizes. --- VulkanHppGenerator.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 4ec3223..988778c 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -3724,6 +3724,7 @@ std::string VulkanHppGenerator::constructArgumentListEnhanced( std::vector( " + argument + " )"; + } + else if ( param.type.isValue() ) { argument = "static_cast<" + param.type.type + ">( " + argument + " )"; }