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

A buffer and its associated memory allocation. More...

#include <resource.h>

Inheritance diagram for nngn::detail::Buffer:

Public Member Functions

VkBuffer id () const
 
VkDeviceSize size () const
 
VkDeviceSize capacity () const
 
void set_size (VkDeviceSize s)
 
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)
 
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 = {}
 

Detailed Description

A buffer and its associated memory allocation.

Member Function Documentation

◆ alloc() [1/2]

bool nngn::detail::Buffer::alloc ( )
protected

◆ alloc() [2/2]

bool nngn::detail::Buffer::alloc ( )
protected

◆ capacity() [1/2]

VkDeviceSize nngn::detail::Buffer::capacity ( ) const
inline
Here is the caller graph for this function:

◆ capacity() [2/2]

VkDeviceSize nngn::detail::Buffer::capacity ( ) const
inline

◆ destroy() [1/4]

void nngn::detail::Buffer::destroy ( void  )
protected
Here is the caller graph for this function:

◆ destroy() [2/4]

void nngn::detail::Buffer::destroy ( )
protected

◆ destroy() [3/4]

void nngn::detail::Buffer::destroy ( VkDevice  dev)
protected

◆ destroy() [4/4]

void nngn::detail::Buffer::destroy ( VkDevice  dev)
protected

◆ id() [1/2]

VkBuffer nngn::detail::Buffer::id ( ) const
inline
Here is the caller graph for this function:

◆ id() [2/2]

VkBuffer nngn::detail::Buffer::id ( ) const
inline

◆ init() [1/2]

bool nngn::detail::Buffer::init ( VkDevice  dev,
VkDeviceSize  size,
VkBufferUsageFlags  usage 
)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init() [2/2]

bool nngn::detail::Buffer::init ( VkDevice  dev,
VkDeviceSize  size,
VkBufferUsageFlags  usage 
)
protected

◆ set_capacity() [1/2]

void nngn::detail::Buffer::set_capacity ( VkDeviceSize  c)
inlineprotected
Here is the caller graph for this function:

◆ set_capacity() [2/2]

void nngn::detail::Buffer::set_capacity ( VkDeviceSize  c)
inlineprotected

◆ set_size() [1/2]

void nngn::detail::Buffer::set_size ( VkDeviceSize  s)
inline

◆ set_size() [2/2]

void nngn::detail::Buffer::set_size ( VkDeviceSize  s)
inline

◆ size() [1/2]

VkDeviceSize nngn::detail::Buffer::size ( ) const
inline
Here is the caller graph for this function:

◆ size() [2/2]

VkDeviceSize nngn::detail::Buffer::size ( ) const
inline

Member Data Documentation

◆ h

VkBuffer nngn::detail::Buffer::h = {}
private

◆ m_capacity

VkDeviceSize nngn::detail::Buffer::m_capacity = {}
private

◆ m_size

VkDeviceSize nngn::detail::Buffer::m_size = {}
private

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