|
Aeon Engine c550894
AeonGames Open Source Game Engine
|
Abstract interface for GPU/memory buffer operations. More...
#include <aeongames/Buffer.hpp>


Public Member Functions | |
| virtual void | WriteMemory (size_t aOffset, size_t aSize, const void *aData=nullptr) const =0 |
| Write data into the buffer at a given offset. | |
| virtual void * | Map (size_t aOffset, size_t aSize) const =0 |
| Map a region of the buffer into CPU-accessible memory. | |
| virtual void | Unmap () const =0 |
| Unmap a previously mapped buffer region. | |
| virtual size_t | GetSize () const =0 |
| Get the total size of the buffer in bytes. | |
Abstract interface for GPU/memory buffer operations.
Definition at line 23 of file Buffer.hpp.
|
pure virtual |
Get the total size of the buffer in bytes.
Implemented in AeonGames::OpenGLBuffer, and AeonGames::VulkanBuffer.
|
pure virtual |
Map a region of the buffer into CPU-accessible memory.
| aOffset | Byte offset of the region to map. |
| aSize | Number of bytes to map. |
Implemented in AeonGames::OpenGLBuffer, and AeonGames::VulkanBuffer.
|
pure virtual |
Unmap a previously mapped buffer region.
Implemented in AeonGames::OpenGLBuffer, and AeonGames::VulkanBuffer.
|
pure virtual |
Write data into the buffer at a given offset.
| aOffset | Byte offset into the buffer to begin writing. |
| aSize | Number of bytes to write. |
| aData | Pointer to the source data, or nullptr to clear. |
Implemented in AeonGames::OpenGLBuffer, and AeonGames::VulkanBuffer.