mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Extend check to determine the returnParameterIndex. (#482)
This commit is contained in:
parent
a75cf874c7
commit
129f82dd90
@ -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<size_t, size_t> const& vpi) { return vpi.second == i; }) == vectorParamIndices.end())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user