|
Hymn to Beauty
C++ 3D Engine
|
WebGPU implementation of RawBuffer. More...
#include <WebGPUBufferAllocator.hpp>
Public Member Functions | |
| WebGPURawBuffer (WebGPURenderer &webGPURenderer, Buffer::BufferUsage bufferUsage, bool temporary, unsigned int size) | |
| Create new raw buffer used to satisfy allocations. More... | |
| ~WebGPURawBuffer () final | |
| Destructor. More... | |
| void | Write (uint32_t offset, uint32_t size, const void *data) final |
| Write data to buffer. More... | |
| WGPUBuffer | GetBuffer () const |
| Get the internal WebGPU buffer. More... | |
Public Member Functions inherited from Video::RawBuffer | |
| virtual | ~RawBuffer () |
| Destructor. More... | |
WebGPU implementation of RawBuffer.
| Video::WebGPURawBuffer::WebGPURawBuffer | ( | WebGPURenderer & | webGPURenderer, |
| Buffer::BufferUsage | bufferUsage, | ||
| bool | temporary, | ||
| unsigned int | size | ||
| ) |
Create new raw buffer used to satisfy allocations.
| webGPURenderer | The WebGPU renderer. |
| bufferUsage | How the buffer will be used. |
| temporary | Whether the buffer is going to be used to satisfy temporary allocations. |
| size | The size of the buffer in bytes. |
|
final |
Destructor.
| WGPUBuffer Video::WebGPURawBuffer::GetBuffer | ( | ) | const |
Get the internal WebGPU buffer.
|
finalvirtual |
Write data to buffer.
| offset | The offset (in bytes) into the buffer to write at. |
| size | The size of the data to write (in bytes). |
| data | The data to write. |
Implements Video::RawBuffer.