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