3#include "../Interface/Buffer.hpp"
25 unsigned int GetSize()
const final;
46 bool temporaryAllocation;
A buffer containing GPU accessible data.
Definition: Buffer.hpp:8
BufferUsage
How the buffer is going to be used.
Definition: Buffer.hpp:11
BufferUsage bufferUsage
How the buffer will be used.
Definition: Buffer.hpp:54
A large buffer from which buffers are sub-allocated.
Definition: BufferAllocator.hpp:21
WebGPU implementation of Buffer.
Definition: WebGPUBuffer.hpp:12
WGPUBuffer GetBuffer() const
Get the internal WebGPU buffer.
Definition: WebGPUBuffer.cpp:33
WebGPUBuffer(Buffer::BufferUsage bufferUsage, const BufferAllocation &allocation)
Create new WebGPU buffer.
Definition: WebGPUBuffer.cpp:9
~WebGPUBuffer() final
Destructor.
Definition: WebGPUBuffer.cpp:13
uint32_t GetOffset() const
Get the offset into the raw buffer.
Definition: WebGPUBuffer.cpp:37
unsigned int GetSize() const final
Get the size of the buffer.
Definition: WebGPUBuffer.cpp:29
void Reset(BufferUsage bufferUsage, const BufferAllocation &allocation) final
Reset the buffer.
Definition: WebGPUBuffer.cpp:19
Definition: Editor.hpp:18
An allocation.
Definition: BufferAllocator.hpp:36