Contents

setTexture(_:at:)

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

Declaration

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

Parameters

  • texture:

    The MTLTexture to bind, or nil to clear.

  • index:

    The zero-based slot index.