Contents

setTexture(_:at:)

Binds a Metal texture to a parameter at the given index.

Declaration

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

Parameters

  • texture:

    The MTLTexture to bind, or nil to unbind the current texture.

  • index:

    The index of the texture parameter in the texture table.