Contents

setVertexTexture(_:index:)

Assigns a texture to an entry in the vertex shader argument table.

Declaration

func setVertexTexture(_ texture: (any MTLTexture)?, index: Int)

Parameters

  • texture:

    An Mtltexture instance the command assigns to an entry in the vertex shader argument table for textures.

  • index:

    An integer that represents the entry in the vertex shader argument table for textures that stores a record of texture.

Discussion

By default, the texture at each index is nil.

See Also

Assigning textures