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

# subscript(_:)

Returns the pipeline buffer descriptor at the specified array index.

## Declaration

```swift
subscript(bufferIndex: Int) -> MTLPipelineBufferDescriptor! { get set }
```

## Parameters

- `bufferIndex`: The array index of the requested pipeline buffer descriptor.

## Return Value

Return Value The descriptor for the buffer bound at this index.
