mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Extend the noDeleterFunction list by vkReleaseCapturedPipelineDataKHR. (#1784)
This commit is contained in:
parent
81be6ce248
commit
bba05939b9
@ -15191,7 +15191,9 @@ TypeInfo VulkanHppGenerator::readTypeInfo( tinyxml2::XMLElement const * element
|
|||||||
void VulkanHppGenerator::registerDeleter( std::string const & commandName, CommandData const & commandData )
|
void VulkanHppGenerator::registerDeleter( std::string const & commandName, CommandData const & commandData )
|
||||||
{
|
{
|
||||||
// some special handling for release functions that don't release an object
|
// 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" ) ||
|
if ( ( commandName.substr( 2, 7 ) == "Destroy" ) || ( commandName.substr( 2, 4 ) == "Free" ) ||
|
||||||
( ( commandName.substr( 2, 7 ) == "Release" ) && !noDeleterFunctions.contains( commandName ) ) )
|
( ( commandName.substr( 2, 7 ) == "Release" ) && !noDeleterFunctions.contains( commandName ) ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user