nngn
Loading...
Searching...
No Matches
nngn::Buffer Class Reference

#include <resource.h>

Inheritance diagram for nngn::Buffer:
Collaboration diagram for nngn::Buffer:

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)
 

Member Function Documentation

◆ destroy()

void nngn::Buffer::destroy ( VkDevice dev,
DeviceMemory * dev_mem )
Here is the call graph for this function:

◆ init()

template<VkMemoryPropertyFlags f>
bool nngn::Buffer::init ( VkDevice dev,
DeviceMemory * dev_mem,
VkDeviceSize size,
VkBufferUsageFlags usage )
Here is the call graph for this function:

Member Data Documentation

◆ ha

MemoryAllocation nngn::Buffer::ha = {}
private

The documentation for this class was generated from the following files: