diff --git a/traits.hpp b/traits.hpp index 443d451..cbde7cb 100644 --- a/traits.hpp +++ b/traits.hpp @@ -101,6 +101,7 @@ namespace cruft::vk { template <> struct id_traits { using id_t = VkDeviceMemory; }; template <> struct id_traits { using id_t = VkBuffer; }; template <> struct id_traits { using id_t = VkBufferView; }; + template <> struct id_traits { using id_t = VkSurfaceKHR; }; /////////////////////////////////////////////////////////////////////////// @@ -151,6 +152,10 @@ namespace cruft::vk { static constexpr auto destroy = vkDestroyShaderModule; }; + template <> struct life_traits { + static constexpr auto destroy = vkDestroySurfaceKHR; + }; + template <> struct life_traits { static constexpr auto get = vkGetDeviceQueue;