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)
 

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 = {}
 

Detailed Description

A buffer and its associated memory allocation.

Member Function Documentation

◆ alloc()

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

◆ capacity()

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

◆ destroy() [1/2]

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

◆ destroy() [2/2]

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

◆ id()

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

◆ init()

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:

◆ set_capacity()

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

◆ set_size()

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

◆ size()

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

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: