---
title: "setStageIn(_:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlindirectcomputecommand/setstagein(_:)"
---

# setStageIn(_:)

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

## Declaration

```swift
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.

## See Also

### Setting a command’s arguments

- [setComputePipelineState(_:)](metal/mtlindirectcomputecommand/setcomputepipelinestate(_:).md)
- [setImageblockWidth(_:height:)](metal/mtlindirectcomputecommand/setimageblockwidth(_:height:).md)
- [setKernelBuffer(_:offset:at:)](metal/mtlindirectcomputecommand/setkernelbuffer(_:offset:at:).md)
- [setThreadgroupMemoryLength(_:index:)](metal/mtlindirectcomputecommand/setthreadgroupmemorylength(_:index:).md)
- [setThreadgroupMemoryLength(_:at:)](metal/mtlindirectcomputecommand/setthreadgroupmemorylength(_:at:).md)
- [setStageInRegion(_:)](metal/mtlindirectcomputecommand/setstageinregion(_:).md)
