---
title: "setAddress(_:index:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtl4argumenttable/setaddress(_:index:)"
---

# setAddress(_:index:)

Binds a GPU address to a buffer binding slot.

## Declaration

```swift
func setAddress(_ gpuAddress: MTLGPUAddress, index bindingIndex: Int)
```

## Parameters

- `gpuAddress`: The GPU address of a doc://com.apple.metal/documentation/Metal/MTLBuffer to set.
- `bindingIndex`: A valid binding index in the buffer binding range. It is an error for this value to match or exceed the value of property doc://com.apple.metal/documentation/Metal/MTL4ArgumentTableDescriptor/maxBufferBindCount on the descriptor from which you created this argument table.
