WebGPU implementation of Buffer.
More...
#include <WebGPUBuffer.hpp>
WebGPU implementation of Buffer.
◆ WebGPUBuffer()
Create new WebGPU buffer.
- Parameters
-
| bufferUsage | How the buffer will be used. |
| allocation | The allocation to encapsulate. |
◆ ~WebGPUBuffer()
| Video::WebGPUBuffer::~WebGPUBuffer |
( |
| ) |
|
|
final |
◆ GetBuffer()
| WGPUBuffer Video::WebGPUBuffer::GetBuffer |
( |
| ) |
const |
Get the internal WebGPU buffer.
- Parameters
-
| The | internal WebGPU buffer. |
◆ GetOffset()
| uint32_t Video::WebGPUBuffer::GetOffset |
( |
| ) |
const |
Get the offset into the raw buffer.
- Returns
- The offset into the raw buffer.
◆ GetSize()
| unsigned int Video::WebGPUBuffer::GetSize |
( |
| ) |
const |
|
finalvirtual |
Get the size of the buffer.
- Returns
- The size of the buffer in bytes.
Implements Video::Buffer.
◆ Reset()
Reset the buffer.
- Parameters
-
| bufferUsage | How the buffer will be used. |
| allocation | Allocation to back up buffer memory. |
Implements Video::Buffer.
The documentation for this class was generated from the following files: