3#include "../Interface/BufferAllocator.hpp"
23 void Write(uint32_t offset, uint32_t size,
const void* data)
final;
62 uint32_t bufferAlignment;
Responsible for allocating buffers.
Definition: BufferAllocator.hpp:51
A buffer containing GPU accessible data.
Definition: Buffer.hpp:8
BufferUsage
How the buffer is going to be used.
Definition: Buffer.hpp:11
OpenGL implementation of BufferAllocator.
Definition: OpenGLBufferAllocator.hpp:44
OpenGLBufferAllocator(uint32_t frames)
Create a new buffer allocator.
Definition: OpenGLBufferAllocator.cpp:65
~OpenGLBufferAllocator() final
Destructor.
Definition: OpenGLBufferAllocator.cpp:71
OpenGL implementation of RawBuffer.
Definition: OpenGLBufferAllocator.hpp:10
~OpenGLRawBuffer() final
Destructor.
Definition: OpenGLBufferAllocator.cpp:43
void Write(uint32_t offset, uint32_t size, const void *data) final
Write data to buffer.
Definition: OpenGLBufferAllocator.cpp:47
GLuint GetBufferID() const
Get the buffer OpenGL ID.
Definition: OpenGLBufferAllocator.cpp:57
GLenum GetTarget() const
Get the OpenGL target.
Definition: OpenGLBufferAllocator.cpp:61
OpenGLRawBuffer(Buffer::BufferUsage bufferUsage, bool temporary, unsigned int size)
Create new raw buffer used to satisfy allocations.
Definition: OpenGLBufferAllocator.cpp:9
A large buffer from which buffers are sub-allocated.
Definition: BufferAllocator.hpp:21
Definition: Editor.hpp:18
An allocation.
Definition: BufferAllocator.hpp:36