nngn
|
A buffer and its associated memory allocation. More...
#include <resource.h>
Public Member Functions | |
VkBuffer | id () const |
VkDeviceSize | size () const |
VkDeviceSize | capacity () const |
void | set_size (VkDeviceSize s) |
Protected Member Functions | |
void | set_capacity (VkDeviceSize c) |
bool | init (VkDevice dev, VkDeviceSize size, VkBufferUsageFlags usage) |
bool | alloc () |
void | destroy () |
void | destroy (VkDevice dev) |
Private Attributes | |
VkBuffer | h = {} |
VkDeviceSize | m_size = {} |
VkDeviceSize | m_capacity = {} |
A buffer and its associated memory allocation.
|
protected |
|
inline |
|
protected |
|
protected |
|
inline |
|
protected |
|
inlineprotected |
|
inline |
|
inline |
|
private |
|
private |
|
private |