Contents

setTexture(_:index:)

Encodes a reference to a texture into the argument buffer.

Declaration

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

Parameters

  • texture:

    A texture the method encodes.

  • index:

    The index of a texture within the argument buffer. The value corresponds to either the index ID of a declaration in Metal Shading Language (MSL) or the Index property of an Mtlargumentdescriptor instance.

See Also

Encoding textures