# GpuAddressMode

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

Texture address mode selector.

```ds title="GpuAddressMode"
export enum GpuAddressMode {
    ClampToEdge = 1,
    Repeat = 2,
    MirrorRepeat = 3,
    ClampToBorder = 4,
}
```

[language/library/src/gpu/binding/resource.ds:527:536](https://github.com/destack-sh/destack/blob/main/language/library/src/gpu/binding/resource.ds#L527-L536)

## Variants

### `ClampToEdge = 1`

Clamp coordinates to the texture edge.

### `Repeat = 2`

Repeat coordinates in a tiling pattern.

### `MirrorRepeat = 3`

Repeat coordinates with alternating mirroring.

### `ClampToBorder = 4`

Clamp coordinates to the configured border color.
