---
title: "access(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/materialparameters/texture/sampler-swift.struct/access(_:)"
---

# access(_:)

## Declaration

```swift
func access<R>(_ closure: (MTLSamplerDescriptor) throws -> R) rethrows -> R
```
