From c5707ffc27f27d1e3bffd5be7adcf2c6ccc7a67d Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 7 Sep 2017 15:51:11 +1000 Subject: [PATCH] traits: add support for VkSurface --- traits.hpp | 5 +++++ 1 file changed, 5 insertions(+) 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;