VOX
A little voxel engine
Loading...
Searching...
No Matches
Buffer Class Reference

#include <Buffer.hpp>

Collaboration diagram for Buffer:
Collaboration graph

Classes

struct  CreateInfo
 

Public Member Functions

 Buffer ()
 
 Buffer (VkDevice device, VkPhysicalDevice physical_device, const CreateInfo &create_info)
 
 ~Buffer ()
 
 Buffer (const Buffer &)=delete
 
 Buffer (Buffer &&other) noexcept
 
Bufferoperator= (const Buffer &)=delete
 
Bufferoperator= (Buffer &&other) noexcept
 
void clear ()
 
VkDeviceSize size () const
 
void * mappedMemory ()
 

Public Attributes

VkBuffer buffer
 
VkDeviceMemory memory
 

Constructor & Destructor Documentation

◆ Buffer() [1/4]

Buffer::Buffer ( )

◆ Buffer() [2/4]

Buffer::Buffer ( VkDevice  device,
VkPhysicalDevice  physical_device,
const CreateInfo create_info 
)

◆ ~Buffer()

Buffer::~Buffer ( )

◆ Buffer() [3/4]

Buffer::Buffer ( const Buffer )
delete

◆ Buffer() [4/4]

Buffer::Buffer ( Buffer &&  other)
noexcept

Member Function Documentation

◆ clear()

void Buffer::clear ( )

◆ mappedMemory()

void * Buffer::mappedMemory ( )

◆ operator=() [1/2]

Buffer & Buffer::operator= ( Buffer &&  other)
noexcept

◆ operator=() [2/2]

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

◆ size()

VkDeviceSize Buffer::size ( ) const
inline

Member Data Documentation

◆ buffer

VkBuffer Buffer::buffer

◆ memory

VkDeviceMemory Buffer::memory

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