---
title: "setVertexTextures(_:range:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlrendercommandencoder/setvertextextures(_:range:)"
---

# setVertexTextures(_:range:)

Assigns multiple textures to a range of entries in the vertex shader argument table.

## Declaration

```swift
func setVertexTextures(_ textures: [(any MTLTexture)?], range: Range<Int>)
```

## Parameters

- `textures`: An array of doc://com.apple.metal/documentation/Metal/MTLTexture instances the command assigns to entries in the vertex shader argument table for textures.
- `range`: A span of integers that represent the entries in the vertex shader argument table for textures. Each entry stores a record of the corresponding element in textures.

## Discussion

Discussion By default, the texture at each index is nil. note: The Objective-C version of this method is setVertexTextures:withRange:.

## See Also

### Assigning textures

- [setVertexTexture(_:index:)](metal/mtlrendercommandencoder/setvertextexture(_:index:).md)
