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

# setAddress(_:attributeStride:index:)

Binds a GPU address to a buffer binding slot, providing a dynamic vertex stride.

## Declaration

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

## Parameters

- `gpuAddress`: The GPU address of a doc://com.apple.metal/documentation/Metal/MTLBuffer to set.
- `stride`: The stride between attributes in the buffer.
- `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.

## Discussion

Discussion This method requires that the value of property supportAttributeStrides on the descriptor from which you created this argument table is true.
