mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Correct sorting extensions by number
This commit is contained in:
parent
9cf8249916
commit
7492af0630
@ -2263,14 +2263,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 )
|
||||
{
|
||||
assert( numberToExtensionMap.find( extensionIt->second.number ) == numberToExtensionMap.end() );
|
||||
numberToExtensionMap[extensionIt->second.number] = extensionIt;
|
||||
int number = atoi( extensionIt->second.number.c_str() );
|
||||
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() )
|
||||
{
|
||||
|
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