setMeshTextures(_:range:)
Assigns multiple textures to a range of entries in the mesh shader argument table.
Declaration
func setMeshTextures(_ textures: [(any MTLTexture)?], range: Range<Int>)Parameters
- textures:
An array of 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
By default, the texture at each index is nil.