Visual Computing Library
|
The GenericBuffer manages the lifetime of a bgfx BufferHandle. More...
#include <vclib/bgfx/buffers/generic_buffer.h>
Public Member Functions | |
bool | isValid () const |
Check if the Buffer is valid. | |
void | destroy () |
Destroy the Buffer. | |
Protected Member Functions | |
GenericBuffer ()=default | |
Empty constructor. | |
GenericBuffer (const GenericBuffer &other)=delete | |
GenericBuffer (GenericBuffer &&other) noexcept | |
Move constructor. | |
~GenericBuffer () | |
Destructor. | |
GenericBuffer & | operator= (const GenericBuffer &other)=delete |
GenericBuffer & | operator= (GenericBuffer &&other) noexcept |
Move assignment operator. | |
void | swap (GenericBuffer &other) |
Swap the content of this object with another Buffer object. | |
Static Protected Member Functions | |
static uint64_t | flagsForAccess (bgfx::Access::Enum access) |
static bgfx::AttribType::Enum | attributeType (PrimitiveType type) |
static uint64_t | flagsForType (PrimitiveType type) |
Protected Attributes | |
BufferHandleType | mHandle = BGFX_INVALID_HANDLE |
Friends | |
void | swap (GenericBuffer &a, GenericBuffer &b) |
The GenericBuffer manages the lifetime of a bgfx BufferHandle.
|
protecteddefault |
Empty constructor.
It creates an invalid GenericBuffer object.
|
inlineprotectednoexcept |
Move constructor.
The other GenericBuffer is left in an invalid state.
[in] | other | the other GenericBuffer object. |
|
inlineprotected |
Destructor.
If the GenericBuffer is valid, the bgfx Buffer Handle is destroyed.
|
inline |
Check if the Buffer is valid.
|
inlineprotectednoexcept |
Move assignment operator.
The other GenericBuffer is left in an invalid state.
[in] | other | the other GenericBuffer object. |
|
inlineprotected |
Swap the content of this object with another Buffer object.
[in] | other | the other Buffer object. |