---
title: "subscript(_:)"
framework: metal
role: symbol
role_heading: Instance Subscript
path: "metal/mtlrasterizationratesamplearray/subscript(_:)"
---

# subscript(_:)

Retrieves the sample value at the specified index.

## Declaration

```swift
subscript(index: Int) -> Float { get set }
```

## Parameters

- `index`: The index of the element you want to retrieve.
