# GpuBufferDescriptor

`import { GpuBufferDescriptor } from "destack:gpu/binding";`

GPU buffer descriptor.

```ds title="GpuBufferDescriptor"
export struct GpuBufferDescriptor {
    label: string;
    size: uint64;
    usage: GpuBufferUsage;
    mappedAtCreation: boolean;
}
```

[language/library/src/gpu/binding/resource.ds:381:390](https://github.com/destack-sh/destack/blob/main/language/library/src/gpu/binding/resource.ds#L381-L390)

## Members

### `label: string`

Debug label.

### `size: uint64`

Buffer size in bytes.

### `usage: GpuBufferUsage`

Buffer usage bitset.

### `mappedAtCreation: boolean`

Whether the buffer starts mapped for host access.
