mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Make attribute provisional="true" imply attribute platform="provisional"
This commit is contained in:
parent
1db86d0204
commit
7318a091be
@ -11859,14 +11859,19 @@ void VulkanHppGenerator::readExtension( tinyxml2::XMLElement const * element )
|
||||
{
|
||||
promotedTo = attribute.second;
|
||||
}
|
||||
#if !defined( NDEBUG )
|
||||
else if ( attribute.first == "provisional" )
|
||||
{
|
||||
check( platform == "provisional",
|
||||
line,
|
||||
"while attribute <provisional> is set to \"true\", attribute <platform> is not set to \"provisional\"" );
|
||||
if ( platform.empty() )
|
||||
{
|
||||
// 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" )
|
||||
{
|
||||
requirements = tokenize( attribute.second, "," );
|
||||
|
Loading…
Reference in New Issue
Block a user