---
title: MTLSamplerAddressMode
framework: metal
role: symbol
role_heading: Enumeration
path: metal/mtlsampleraddressmode
---

# MTLSamplerAddressMode

Modes that determine the texture coordinate at each pixel when a fetch falls outside the bounds of a texture.

## Declaration

```swift
enum MTLSamplerAddressMode
```

## Topics

### Address mode options

- [MTLSamplerAddressMode.clampToEdge](metal/mtlsampleraddressmode/clamptoedge.md)
- [MTLSamplerAddressMode.mirrorClampToEdge](metal/mtlsampleraddressmode/mirrorclamptoedge.md)
- [MTLSamplerAddressMode.repeat](metal/mtlsampleraddressmode/repeat.md)
- [MTLSamplerAddressMode.mirrorRepeat](metal/mtlsampleraddressmode/mirrorrepeat.md)
- [MTLSamplerAddressMode.clampToZero](metal/mtlsampleraddressmode/clamptozero.md)
- [MTLSamplerAddressMode.clampToBorderColor](metal/mtlsampleraddressmode/clamptobordercolor.md)

### Initializers

- [init(rawValue:)](metal/mtlsampleraddressmode/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Declaring addressing modes

- [rAddressMode](metal/mtlsamplerdescriptor/raddressmode.md)
- [sAddressMode](metal/mtlsamplerdescriptor/saddressmode.md)
- [tAddressMode](metal/mtlsamplerdescriptor/taddressmode.md)
- [borderColor](metal/mtlsamplerdescriptor/bordercolor.md)
- [MTLSamplerBorderColor](metal/mtlsamplerbordercolor.md)
