Contents

setObjectTextures(_:range:)

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

Declaration

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

Parameters

  • textures:

    An array of Mtltexture instances the command assigns to entries in the object shader argument table for textures.

  • range:

    A span of integers that represent the entries in the object 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.

See Also

Assigning textures for object shaders