mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Reduced listing of unused VkStructureType value from error to warning. (#1664)
This commit is contained in:
parent
3e1e9b4653
commit
f1b8af1157
@ -1482,7 +1482,7 @@ void VulkanHppGenerator::checkStructCorrectness() const
|
||||
else
|
||||
{
|
||||
// check for non-alias structureTypes only
|
||||
checkForError( !enumValue.alias.empty() || ( sTypeValues.erase( enumValue.name ) == 1 ),
|
||||
checkForWarning( !enumValue.alias.empty() || ( sTypeValues.erase( enumValue.name ) == 1 ),
|
||||
enumValue.xmlLine,
|
||||
"VkStructureType enum value <" + enumValue.name + "> never used" );
|
||||
}
|
||||
@ -11813,7 +11813,8 @@ std::string VulkanHppGenerator::generateSharedHandle( std::pair<std::string, Han
|
||||
using Shared${type} = SharedHandle<${type}>;
|
||||
${aliasHandle})";
|
||||
|
||||
return replaceWithMap( sharedHandleTemplate,
|
||||
return replaceWithMap(
|
||||
sharedHandleTemplate,
|
||||
{ { "aliasHandle", aliasHandle },
|
||||
{ "deleterAction", ( handleData.second.deleteCommand.substr( 2, 4 ) == "Free" ) ? "Free" : "Destroy" },
|
||||
{ "deleterPool", handleData.second.deletePool.empty() ? "" : ", " + stripPrefix( handleData.second.deletePool, "Vk" ) },
|
||||
|
Loading…
Reference in New Issue
Block a user