setObjectSamplerState(_:index:)
Assigns a sampler state to an entry in the object shader argument table.
Declaration
func setObjectSamplerState(_ sampler: (any MTLSamplerState)?, index: Int)Parameters
- sampler:
An Mtlsamplerstate instance the command assigns to an entry in the object shader argument table for sampler states.
- index:
An integer that represents the entry in the object argument table for sampler states that stores a record of
sampler.
Discussion
By default, the sampler state at each index is nil.