setTexture(_:port:)
Binds a Metal texture to a parameter identified by its port address.
Declaration
@discardableResult mutating func setTexture(_ texture: (any MTLTexture)?, port: ComputeNodeGraph.Port.Address) -> BoolParameters
- texture:
The
MTLTextureto bind, ornilto unbind the current texture. - port:
The port address identifying the texture parameter.
Return Value
true if the port was found and the texture was set; false otherwise.