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
MTLTextureto bind, ornilto unbind the current texture. - index:
The index of the texture parameter in the texture table.