---
title: "setObjectThreadgroupMemoryLength(_:index:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlrendercommandencoder/setobjectthreadgroupmemorylength(_:index:)"
---

# setObjectThreadgroupMemoryLength(_:index:)

Configures the size of a threadgroup memory buffer for an entry in the object argument table.

## Declaration

```swift
func setObjectThreadgroupMemoryLength(_ length: Int, index: Int)
```

## Parameters

- `length`: The threadgroup memory length, in bytes.
- `index`: An integer that represents an entry in the object argument table.

## See Also

### Configuring persistent threadgroup memory

- [setThreadgroupMemoryLength(_:offset:index:)](metal/mtlrendercommandencoder/setthreadgroupmemorylength(_:offset:index:).md)
