nngn
|
#include <resource.h>
Public Member Functions | |
template<VkMemoryPropertyFlags f> | |
bool | init (VkDevice dev, DeviceMemory *dev_mem, VkDeviceSize size, VkBufferUsageFlags usage) |
void | destroy (VkDevice dev, DeviceMemory *dev_mem) |
Public Member Functions inherited from nngn::detail::Buffer | |
VkBuffer | id () const |
VkDeviceSize | size () const |
VkDeviceSize | capacity () const |
void | set_size (VkDeviceSize s) |
Private Attributes | |
MemoryAllocation | ha = {} |
Additional Inherited Members | |
Protected Member Functions inherited from nngn::detail::Buffer | |
void | set_capacity (VkDeviceSize c) |
bool | init (VkDevice dev, VkDeviceSize size, VkBufferUsageFlags usage) |
bool | alloc () |
void | destroy () |
void | destroy (VkDevice dev) |
void nngn::Buffer::destroy | ( | VkDevice | dev, |
DeviceMemory * | dev_mem ) |
bool nngn::Buffer::init | ( | VkDevice | dev, |
DeviceMemory * | dev_mem, | ||
VkDeviceSize | size, | ||
VkBufferUsageFlags | usage ) |
|
private |