45 VkBuffer _buffer{VK_NULL_HANDLE};
46 VmaAllocation _allocation{VK_NULL_HANDLE};
48 [[nodiscard]]
inline constexpr bool valid()
const
50 return this->_buffer != VK_NULL_HANDLE && this->_allocation != VK_NULL_HANDLE;
52 inline constexpr void clear()
54 this->_buffer = VK_NULL_HANDLE;
55 this->_allocation = VK_NULL_HANDLE;
61 VkImage _image{VK_NULL_HANDLE};
62 VmaAllocation _allocation{VK_NULL_HANDLE};
64 [[nodiscard]]
inline constexpr bool valid()
const
66 return this->_image != VK_NULL_HANDLE && this->_allocation != VK_NULL_HANDLE;
68 inline constexpr void clear()
70 this->_image = VK_NULL_HANDLE;
71 this->_allocation = VK_NULL_HANDLE;
Vulkan context.
Definition C_context.hpp:70