Rendu
A lightweight rendering engine for experimentations
|
Store data in a GPU buffer. More...
#include <GPUObjects.hpp>
Public Member Functions | |
GPUBuffer (BufferType atype) | |
void | clean () |
GPUBuffer & | operator= (const GPUBuffer &)=delete |
GPUBuffer (const GPUBuffer &)=delete | |
GPUBuffer & | operator= (GPUBuffer &&)=delete |
GPUBuffer (GPUBuffer &&)=delete | |
Public Attributes | |
VkBuffer | buffer = VK_NULL_HANDLE |
Buffer native handle. | |
VmaAllocation | data = VK_NULL_HANDLE |
Internal allocation. | |
char * | mapped = nullptr |
If the buffer is CPU-mappable, its CPU address. | |
bool | mappable = false |
Is the buffer mappable on the CPU. | |
Store data in a GPU buffer.
GPUBuffer::GPUBuffer | ( | BufferType | atype | ) |
Constructor.
atype | the type of buffer |
|
delete |
Copy constructor (disabled).
|
delete |
Move constructor.
void GPUBuffer::clean | ( | ) |
Clean internal GPU buffer.
Copy assignment operator (disabled).
Move assignment operator .