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

#include <resource.h>

Inheritance diagram for nngn::DedicatedBuffer:
Collaboration diagram for nngn::DedicatedBuffer:

Public Member Functions

VkDeviceMemory mem () const
 
template<VkMemoryPropertyFlags f>
bool init (VkDevice dev, DeviceMemory *dev_mem, VkDeviceSize size, VkBufferUsageFlags usage)
 
void destroy (VkDevice dev, DeviceMemory *dev_mem)
 
void memcpy (VkDevice dev, VkDeviceSize off, std::span< const std::byte > s) const
 
void fill (VkDevice dev, VkDeviceSize off, VkDeviceSize n, VkDeviceSize stride, std::span< const std::byte > s) const
 
- Public Member Functions inherited from nngn::detail::Buffer
VkBuffer id () const
 
VkDeviceSize size () const
 
VkDeviceSize capacity () const
 
void set_size (VkDeviceSize s)
 

Private Attributes

VkDeviceMemory hm = {}
 

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::DedicatedBuffer::destroy ( VkDevice dev,
nngn::DeviceMemory * dev_mem )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill()

void nngn::DedicatedBuffer::fill ( VkDevice dev,
VkDeviceSize off,
VkDeviceSize n,
VkDeviceSize stride,
std::span< const std::byte > s ) const
Here is the call graph for this function:

◆ init()

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

◆ mem()

VkDeviceMemory nngn::DedicatedBuffer::mem ( ) const
inline
Here is the caller graph for this function:

◆ memcpy()

void nngn::DedicatedBuffer::memcpy ( VkDevice dev,
VkDeviceSize off,
std::span< const std::byte > s ) const
Here is the caller graph for this function:

Member Data Documentation

◆ hm

VkDeviceMemory nngn::DedicatedBuffer::hm = {}
private

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