mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #951 from asuessenbach/sort
Correct sorting extensions by number
This commit is contained in:
commit
acb75fe9dc
@ -2274,14 +2274,15 @@ void VulkanHppGenerator::appendDispatchLoaderStatic( std::string & str )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::map<std::string, std::map<std::string, ExtensionData>::const_iterator> numberToExtensionMap;
|
std::map<int, std::map<std::string, ExtensionData>::const_iterator> extensionsByNumber;
|
||||||
for ( auto extensionIt = m_extensions.begin(); extensionIt != m_extensions.end(); ++extensionIt )
|
for ( auto extensionIt = m_extensions.begin(); extensionIt != m_extensions.end(); ++extensionIt )
|
||||||
{
|
{
|
||||||
assert( numberToExtensionMap.find( extensionIt->second.number ) == numberToExtensionMap.end() );
|
int number = atoi( extensionIt->second.number.c_str() );
|
||||||
numberToExtensionMap[extensionIt->second.number] = extensionIt;
|
assert( extensionsByNumber.find( number ) == extensionsByNumber.end() );
|
||||||
|
extensionsByNumber[number] = extensionIt;
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( auto const & extIt : numberToExtensionMap )
|
for ( auto const & extIt : extensionsByNumber )
|
||||||
{
|
{
|
||||||
if ( !extIt.second->second.commands.empty() )
|
if ( !extIt.second->second.commands.empty() )
|
||||||
{
|
{
|
||||||
|
1824
vulkan/vulkan.hpp
1824
vulkan/vulkan.hpp
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user