From 129f82dd90cc403ed56ab56de686273399b9ac59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=BC=C3=9Fenbach?= Date: Tue, 14 Jan 2020 16:06:50 +0100 Subject: [PATCH] Extend check to determine the returnParameterIndex. (#482) --- VulkanHppGenerator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index b2b67ab..8e19e4e 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -3268,6 +3268,7 @@ size_t VulkanHppGenerator::determineReturnParamIndex(CommandData const& commandD for (size_t i = 0; i < commandData.params.size(); i++) { if ((commandData.params[i].type.postfix.find('*') != std::string::npos) + && ((commandData.params[i].type.type != "void") || twoStep || (commandData.params[i].type.postfix.find("**") != std::string::npos)) && (commandData.params[i].type.prefix.find("const") == std::string::npos) && std::find_if(vectorParamIndices.begin(), vectorParamIndices.end(), [i](std::pair const& vpi) { return vpi.second == i; }) == vectorParamIndices.end()) {