# Buffer

`import { Buffer } from "destack:compute";`

Typed storage allocated on one compute device.

```ds title="Buffer"
export struct Buffer<T> {
    handle: ComputeBufferHandle;
    element: Phantom<T>;
}
```

[language/library/src/compute/buffer.ds:48:54](https://github.com/destack-sh/destack/blob/main/language/library/src/compute/buffer.ds#L48-L54)

## Members

### `handle: ComputeBufferHandle`

The buffer endpoint handle.

### `element: Phantom<T>`

The element type this buffer stores.
