RetroArch
Public Member Functions | Private Attributes | List of all members
Buffer Class Reference
Collaboration diagram for Buffer:
[legend]

Public Member Functions

 Buffer (VkDevice device, const VkPhysicalDeviceMemoryProperties &mem_props, size_t size, VkBufferUsageFlags usage)
 
 ~Buffer ()
 
size_t get_size () const
 
voidmap ()
 
void unmap ()
 
const VkBuffer & get_buffer () const
 
 Buffer (Buffer &&)=delete
 
void operator= (Buffer &&)=delete
 

Private Attributes

VkDevice device
 
VkBuffer buffer
 
VkDeviceMemory memory
 
size_t size
 
voidmapped = nullptr
 

Constructor & Destructor Documentation

◆ Buffer() [1/2]

Buffer::Buffer ( VkDevice  device,
const VkPhysicalDeviceMemoryProperties mem_props,
size_t  size,
VkBufferUsageFlags  usage 
)
Here is the call graph for this function:

◆ ~Buffer()

Buffer::~Buffer ( )
Here is the call graph for this function:

◆ Buffer() [2/2]

Buffer::Buffer ( Buffer &&  )
delete

Member Function Documentation

◆ get_buffer()

const VkBuffer& Buffer::get_buffer ( ) const
inline

◆ get_size()

size_t Buffer::get_size ( ) const
inline

◆ map()

void * Buffer::map ( )
Here is the call graph for this function:

◆ operator=()

void Buffer::operator= ( Buffer &&  )
delete

◆ unmap()

void Buffer::unmap ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ buffer

VkBuffer Buffer::buffer
private

◆ device

VkDevice Buffer::device
private

◆ mapped

void* Buffer::mapped = nullptr
private

◆ memory

VkDeviceMemory Buffer::memory
private

◆ size

size_t Buffer::size
private

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