mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Check for correct formats specifications only if formats are specified.
This commit is contained in:
parent
ad47832799
commit
78379f769d
@ -1491,6 +1491,8 @@ void VulkanHppGenerator::checkEnumCorrectness() const
|
||||
}
|
||||
|
||||
// special check for VkFormat
|
||||
if ( !m_formats.empty() )
|
||||
{
|
||||
auto enumIt = m_enums.find( "VkFormat" );
|
||||
assert( enumIt != m_enums.end() );
|
||||
assert( enumIt->second.values.front().name == "VK_FORMAT_UNDEFINED" );
|
||||
@ -1509,6 +1511,7 @@ void VulkanHppGenerator::checkEnumCorrectness() const
|
||||
"missing format specification for <" + enumValueIt->name + ">" );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void VulkanHppGenerator::checkEnumCorrectness( std::vector<RequireData> const & requireData ) const
|
||||
|
Loading…
Reference in New Issue
Block a user