Merge pull request #899 from asuessenbach/provisional

Make attribute provisional="true" imply attribute platform="provisional"
This commit is contained in:
Andreas Süßenbach 2021-03-03 13:19:48 +01:00 committed by GitHub
commit 2e66b9101a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11859,14 +11859,19 @@ void VulkanHppGenerator::readExtension( tinyxml2::XMLElement const * element )
{ {
promotedTo = attribute.second; promotedTo = attribute.second;
} }
#if !defined( NDEBUG )
else if ( attribute.first == "provisional" ) else if ( attribute.first == "provisional" )
{ {
check( platform == "provisional", if ( platform.empty() )
line, {
"while attribute <provisional> is set to \"true\", attribute <platform> is not set to \"provisional\"" ); // for now, having the attribute provisional="true" implies attribute platform="provisional" to get stuff protected by VK_ENABLE_BETA_EXTENSIONS
platform = "provisional";
}
check(
platform == "provisional",
line,
"while attribute <provisional> is set to \"true\", attribute <platform> is not set to \"provisional\" but to \"" +
platform + "\"" );
} }
#endif
else if ( attribute.first == "requires" ) else if ( attribute.first == "requires" )
{ {
requirements = tokenize( attribute.second, "," ); requirements = tokenize( attribute.second, "," );