# GpuBufferState

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

GPU buffer state.

```ds title="GpuBufferState"
export struct GpuBufferState {
    size: uint64;
    usage: GpuBufferUsage;
    mapState: GpuBufferMapState;
}
```

[language/library/src/gpu/binding/resource.ds:709:716](https://github.com/destack-sh/destack/blob/main/language/library/src/gpu/binding/resource.ds#L709-L716)

## Members

### `size: uint64`

Buffer size in bytes.

### `usage: GpuBufferUsage`

Buffer usage bitset.

### `mapState: GpuBufferMapState`

Current map-state selector.
