Check for correct formats specifications only if formats are specified.

This commit is contained in:
asuessenbach 2021-12-08 08:42:04 +01:00
parent ad47832799
commit 78379f769d

View File

@ -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" );
@ -1510,6 +1512,7 @@ void VulkanHppGenerator::checkEnumCorrectness() const
}
}
}
}
void VulkanHppGenerator::checkEnumCorrectness( std::vector<RequireData> const & requireData ) const
{