#include <CeresEngine/RenderAPI/GPUBufferObject.hpp>
◆ GPUBufferObject() [1/7]
| CeresEngine::GPUBufferObject::GPUBufferObject |
( |
| ) |
|
|
default |
Creates a new empty BufferObject.
◆ GPUBufferObject() [2/7]
Creates a new BufferObject from an existing GPU buffer.
- Parameters
-
| buffer | The existing GPU buffer. |
| offset | The offset to the beginning of the buffer object. |
| length | The length of the uniform buffer data. |
◆ GPUBufferObject() [3/7]
◆ GPUBufferObject() [4/7]
Creates a new BufferObject.
- Parameters
-
| device | The device to create the buffer on. |
| descriptor | A structure that describes how the buffer should be created. |
◆ GPUBufferObject() [5/7]
| CeresEngine::GPUBufferObject::GPUBufferObject |
( |
std::nullptr_t |
| ) |
|
|
inline |
Creates a new empty BufferObject.
◆ GPUBufferObject() [6/7]
Creates a new BufferObject by copying another.
The contents of the buffer are not copied.
◆ GPUBufferObject() [7/7]
Creates a new BufferObject by moving another.
◆ ~GPUBufferObject()
| CeresEngine::GPUBufferObject::~GPUBufferObject |
( |
| ) |
|
Destroys the BufferObject.
◆ flush()
Flushes the cached memory data starting at offset with size bytes.
- Parameters
-
| offset | The starting offset to be flushed |
| size | The amount of bytes to be flushed |
◆ getBuffer()
| GPUBufferPtr CeresEngine::GPUBufferObject::getBuffer |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- A pointer to the GPU allocated buffer
◆ getLength()
- Returns
- The length of the buffer object data.
◆ getOffset()
- Returns
- The offset to the beginning of the buffer object data.
◆ invalidate()
Invalidates the cached memory data starting at offset with size bytes.
- Parameters
-
| offset | The starting offset to be flushed |
| size | The amount of bytes to be flushed |
◆ operator bool()
| CeresEngine::GPUBufferObject::operator bool |
( |
| ) |
const |
|
inlineexplicitnoexcept |
- Returns
true if the buffer is not nullptr
◆ operator=() [1/3]
Assigns the BufferObject by copying another.
The contents of the buffer are not copied.
◆ operator=() [2/3]
Assigns a BufferObject by moving another.
◆ operator=() [3/3]
| GPUBufferObject & CeresEngine::GPUBufferObject::operator= |
( |
std::nullptr_t |
| ) |
|
|
inline |
Assigns the BufferObject an empty value.
- Returns
◆ operator!= [1/3]
◆ operator!= [2/3]
◆ operator!= [3/3]
◆ operator== [1/3]
◆ operator== [2/3]
◆ operator== [3/3]
◆ mBuffer
A pointer to the GPU allocated buffer.
◆ mLength
The length of the buffer data.
◆ mOffset
The offset to the beginning of the buffer object data.
The documentation for this class was generated from the following file: