Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
GPUBuffer Class Reference

Store data in a GPU buffer. More...

#include <GPUObjects.hpp>

Public Member Functions

 GPUBuffer (BufferType atype)
 
void clean ()
 
GPUBufferoperator= (const GPUBuffer &)=delete
 
 GPUBuffer (const GPUBuffer &)=delete
 
GPUBufferoperator= (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.
 

Detailed Description

Store data in a GPU buffer.

Constructor & Destructor Documentation

◆ GPUBuffer() [1/3]

GPUBuffer::GPUBuffer ( BufferType  atype)

Constructor.

Parameters
atypethe type of buffer

◆ GPUBuffer() [2/3]

GPUBuffer::GPUBuffer ( const GPUBuffer )
delete

Copy constructor (disabled).

◆ GPUBuffer() [3/3]

GPUBuffer::GPUBuffer ( GPUBuffer &&  )
delete

Move constructor.

Member Function Documentation

◆ clean()

void GPUBuffer::clean ( )

Clean internal GPU buffer.

◆ operator=() [1/2]

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

Copy assignment operator (disabled).

Returns
a reference to the object assigned to

◆ operator=() [2/2]

GPUBuffer & GPUBuffer::operator= ( GPUBuffer &&  )
delete

Move assignment operator .

Returns
a reference to the object assigned to

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