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
MTLTextureto bind, ornilto clear. - index:
The zero-based slot index.