> ## Documentation Index
> Fetch the complete documentation index at: https://rive.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# GPUBufferDesc

Descriptor for `GPUBuffer.new`.

## Fields

### `size`

Size in bytes.

### `usage`

How the buffer will be used.

### `data`

Optional initial contents. Required when `immutable` is true; its
length must equal `size`.

### `immutable`

When true the buffer is GPU-only and cannot be written after creation.

### `label`

Optional debug name.
