<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLStageInputOutputDescriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLStageInputOutputDescriptor"
  },
  "title" : "MTLStageInputOutputDescriptor"
}
-->

# MTLStageInputOutputDescriptor

A description of the input and output data of a function.

```
class MTLStageInputOutputDescriptor
```

## Topics

### Creating a input/output descriptor

[`stageInputOutputDescriptor`](/documentation/Metal/MTLStageInputOutputDescriptor/stageInputOutputDescriptor)

### Describing argument layouts

[`attributes`](/documentation/Metal/MTLStageInputOutputDescriptor/attributes)

An array that describes where and how to fetch data for the function.

[`layouts`](/documentation/Metal/MTLStageInputOutputDescriptor/layouts)

An array that describes how the function fetches data.

### Declaring index buffers for indirect compute commands

[`indexBufferIndex`](/documentation/Metal/MTLStageInputOutputDescriptor/indexBufferIndex)

The location of the index buffer for a compute function using indexed thread addressing.

[`indexType`](/documentation/Metal/MTLStageInputOutputDescriptor/indexType)

The data type of the indices stored in the index buffer.

### Resetting the descriptor

[`reset()`](/documentation/Metal/MTLStageInputOutputDescriptor/reset())

Resets the default state for the descriptor.



---

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)