traits: add support for VkSurface
This commit is contained in:
parent
d0cffd56d3
commit
c5707ffc27
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user