---
title: rAddressMode
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlsamplerdescriptor/raddressmode
---

# rAddressMode

The address mode for the texture depth (r) coordinate.

## Declaration

```swift
var rAddressMode: MTLSamplerAddressMode { get set }
```

## Discussion

Discussion The default value is MTLSamplerAddressMode.clampToEdge.

## See Also

### Related Documentation

- [Metal Shading Language Guide](apple-archive/documentation/Metal/Reference/MetalShadingLanguageGuide/Introduction.md)
- [Metal Programming Guide](apple-archive/documentation/Miscellaneous/Conceptual/MetalProgrammingGuide/Introduction.md)

### Declaring addressing modes

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