---
title: "setMeshTextures:withRange:"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlrendercommandencoder/setmeshtextures:withrange:"
---

# setMeshTextures:withRange:

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

## Declaration

```occ
- (void) setMeshTextures:(id<MTLTexture> const[]) textures withRange:(NSRange) range;
```

## Parameters

- `textures`: A pointer to a C array of doc://com.apple.metal/documentation/Metal/MTLTexture instances the command assigns to entries in the mesh shader argument table for textures.
- `range`: A span of integers that represent the entries in the mesh 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 Swift version of this method is setMeshTextures(_:range:).

## See Also

### Assigning textures for mesh shaders

- [setMeshTexture(_:index:)](metal/mtlrendercommandencoder/setmeshtexture(_:index:).md)
