3#include "../Interface/BufferAllocator.hpp"
25 void Write(uint32_t offset, uint32_t size,
const void* data)
final;
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
A large buffer from which buffers are sub-allocated.
Definition: BufferAllocator.hpp:21
WebGPU implementation of BufferAllocator.
Definition: WebGPUBufferAllocator.hpp:40
WebGPUBufferAllocator(WebGPURenderer &webGPURenderer)
Create a new buffer allocator.
Definition: WebGPUBufferAllocator.cpp:60
~WebGPUBufferAllocator() final
Destructor.
Definition: WebGPUBufferAllocator.cpp:64
WebGPU implementation of RawBuffer.
Definition: WebGPUBufferAllocator.hpp:11
WGPUBuffer GetBuffer() const
Get the internal WebGPU buffer.
Definition: WebGPUBufferAllocator.cpp:56
void Write(uint32_t offset, uint32_t size, const void *data) final
Write data to buffer.
Definition: WebGPUBufferAllocator.cpp:51
~WebGPURawBuffer() final
Destructor.
Definition: WebGPUBufferAllocator.cpp:47
WebGPURawBuffer(WebGPURenderer &webGPURenderer, Buffer::BufferUsage bufferUsage, bool temporary, unsigned int size)
Create new raw buffer used to satisfy allocations.
Definition: WebGPUBufferAllocator.cpp:35
Low-level renderer implementing WebGPU.
Definition: WebGPURenderer.hpp:22
Definition: Editor.hpp:18
An allocation.
Definition: BufferAllocator.hpp:36