mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
fix functions that create a vector with a size
This commit is contained in:
parent
fa7958ea0e
commit
624afed04b
@ -2078,8 +2078,14 @@ void writeFunctionBody(std::ofstream & ofs, std::string const& indentation, std:
|
||||
}
|
||||
}
|
||||
assert(!size.empty());
|
||||
ofs << "( " << size << " )";
|
||||
} else if (commandData.twoStep)
|
||||
ofs << "( " << size;
|
||||
if (returnType.find("Allocator") != std::string::npos)
|
||||
{
|
||||
ofs << ", " << commandData.arguments[returnIndex].pureType << "(), alloc";
|
||||
}
|
||||
ofs << " )";
|
||||
}
|
||||
else if (commandData.twoStep)
|
||||
{
|
||||
ofs << "( alloc )";
|
||||
}
|
||||
@ -3257,7 +3263,7 @@ int main( int argc, char **argv )
|
||||
<< arrayProxyHeader;
|
||||
|
||||
// first of all, write out vk::Result and the exception handling stuff
|
||||
std::list<DependencyData>::const_iterator it = std::find_if(vkData.dependencies.begin(), vkData.dependencies.end(), [](DependencyData const& dp) { return dp.name == "Result"; });
|
||||
std::list<DependencyData>::iterator it = std::find_if(vkData.dependencies.begin(), vkData.dependencies.end(), [](DependencyData const& dp) { return dp.name == "Result"; });
|
||||
assert(it != vkData.dependencies.end());
|
||||
writeTypeEnum(ofs, *it, vkData.enums.find(it->name)->second);
|
||||
writeEnumsToString(ofs, *it, vkData.enums.find(it->name)->second);
|
||||
|
44414
vulkan/vulkan.hpp
44414
vulkan/vulkan.hpp
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user