traits: add support for VkSurface

This commit is contained in:
Danny Robson 2017-09-07 15:51:11 +10:00
parent d0cffd56d3
commit c5707ffc27

View File

@ -101,6 +101,7 @@ namespace cruft::vk {
template <> struct id_traits<device_memory> { using id_t = VkDeviceMemory; };
template <> struct id_traits<buffer> { using id_t = VkBuffer; };
template <> struct id_traits<buffer_view> { using id_t = VkBufferView; };
template <> struct id_traits<surface> { using id_t = VkSurfaceKHR; };
///////////////////////////////////////////////////////////////////////////
@ -151,6 +152,10 @@ namespace cruft::vk {
static constexpr auto destroy = vkDestroyShaderModule;
};
template <> struct life_traits<surface> {
static constexpr auto destroy = vkDestroySurfaceKHR;
};
template <>
struct life_traits<queue> {
static constexpr auto get = vkGetDeviceQueue;