Vulkan-Hpp icon indicating copy to clipboard operation
Vulkan-Hpp copied to clipboard

no destroy for SurfaceKHR?

Open bigdimboom opened this issue 8 years ago • 2 comments

I guess I can use a uniqueHandle for Surface. But the destroy method can be added to SurfaceKHR?

bigdimboom avatar Apr 04 '18 02:04 bigdimboom

Objects in Vulkan-Hpp do not have destroy functions, since they would have to store the parent object to be able to call the destroy function. The destroy function for a specific object type is in the same class as the create function for the same object type. In case for vk::SurfaceKHR, the class Instance provides the destroySurfaceKHR function.

mtavenrath avatar Apr 04 '18 07:04 mtavenrath

This exists now as an instance method

LWarrens avatar Dec 23 '24 13:12 LWarrens