---
title: getSamplePositions()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtlrenderpassdescriptor/getsamplepositions()
---

# getSamplePositions()

Returns the programmable sample positions set for a render pass.

## Declaration

```swift
func getSamplePositions() -> [MTLSamplePosition]
```

## Return Value

Return Value An array of programmable sample positions.

## See Also

### Using programmable sample positions

- [MTLSamplePositionMake(_:_:)](metal/mtlsamplepositionmake(_:_:).md)
- [setSamplePositions(_:)](metal/mtlrenderpassdescriptor/setsamplepositions(_:).md)
