<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: 10.15.4 -",
    "tvOS: 16.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLRasterizationRateSampleArray/subscript(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Subscript",
  "symbol" : {
    "kind" : "Instance Subscript",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "s:So31MTLRasterizationRateSampleArrayC5MetalEySfSicip"
  },
  "title" : "subscript(_:)"
}
-->

# subscript(_:)

Retrieves the sample value at the specified index.

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

## Parameters

`index`

The index of the element you want to retrieve.

## Overview

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)