---
title: "setArgumentTable(_:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtl4computecommandencoder/setargumenttable(_:)"
---

# setArgumentTable(_:)

Sets an argument table for the compute shader stage of this pipeline.

## Declaration

```swift
func setArgumentTable(_ argumentTable: (any MTL4ArgumentTable)?)
```

## Parameters

- `argumentTable`: A doc://com.apple.metal/documentation/Metal/MTL4ArgumentTable to set on the command encoder.

## Discussion

Discussion Metal takes a snapshot of the resources in the argument table when you make dispatch or execute calls on this encoder instance. Metal makes the snapshot contents available to the compute shader function of the current pipeline state.

## See Also

### Configuring the pass

- [setComputePipelineState(_:)](metal/mtl4computecommandencoder/setcomputepipelinestate(_:).md)
- [setThreadgroupMemoryLength(_:index:)](metal/mtl4computecommandencoder/setthreadgroupmemorylength(_:index:).md)
- [setImageblockSize(width:height:)](metal/mtl4computecommandencoder/setimageblocksize(width:height:).md)
