Extend the noDeleterFunction list by vkReleaseCapturedPipelineDataKHR. (#1784)

This commit is contained in:
Andreas Süßenbach 2024-02-02 21:52:35 +01:00 committed by GitHub
parent 81be6ce248
commit bba05939b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15191,7 +15191,9 @@ TypeInfo VulkanHppGenerator::readTypeInfo( tinyxml2::XMLElement const * element
void VulkanHppGenerator::registerDeleter( std::string const & commandName, CommandData const & commandData )
{
// some special handling for release functions that don't release an object
const std::set<std::string> noDeleterFunctions = { "vkReleaseFullScreenExclusiveModeEXT", "vkReleaseProfilingLockKHR", "vkReleaseSwapchainImagesEXT" };
const std::set<std::string> noDeleterFunctions = {
"vkReleaseCapturedPipelineDataKHR", "vkReleaseFullScreenExclusiveModeEXT", "vkReleaseProfilingLockKHR", "vkReleaseSwapchainImagesEXT"
};
if ( ( commandName.substr( 2, 7 ) == "Destroy" ) || ( commandName.substr( 2, 4 ) == "Free" ) ||
( ( commandName.substr( 2, 7 ) == "Release" ) && !noDeleterFunctions.contains( commandName ) ) )