Skip to content

Commit

Permalink
Extend the noDeleterFunction list by vkReleaseCapturedPipelineDataKHR.
Browse files Browse the repository at this point in the history
  • Loading branch information
asuessenbach committed Feb 2, 2024
1 parent 81be6ce commit d59fa06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion VulkanHppGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) )
Expand Down

0 comments on commit d59fa06

Please sign in to comment.