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

# subscript(_:)

Returns the state of the specified buffer layout.

## Declaration

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

## Parameters

- `index`: A specified index in the array of buffer layouts.

## Return Value

Return Value The buffer layout descriptor for the buffer bound to the given attribute table index.
