<!--
{
  "availability" : [
    "iOS: 13.0.0 - 14.0.0",
    "iPadOS: 13.0.0 - 14.0.0",
    "macCatalyst: 14.0.0 - 14.0.0",
    "tvOS: 13.0.0 - 14.0.0",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLIndirectComputeCommand/setStageIn(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "s:So25MTLIndirectComputeCommandP5MetalE10setStageInyySo9MTLRegionaF"
  },
  "title" : "setStageIn(_:)"
}
-->

# setStageIn(_:)

Sets the region of the stage-in attributes to apply to the compute kernel.

```
func setStageIn(_ region: MTLRegion)
```

## Parameters

`region`

The offset and maximum size of the grid over which compute threads that read per-thread stage-in data are launched.

---

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)