setVertexSamplerStates(_:range:)
Assigns multiple sampler states to a range of entries in the vertex shader argument table.
Declaration
func setVertexSamplerStates(_ samplers: [(any MTLSamplerState)?], range: Range<Int>)Parameters
- samplers:
An array of Mtlsamplerstate instances the command assigns to entries in the vertex shader argument table for sampler states.
- range:
A span of integers that represent the entries in the vertex shader argument table for sampler states. Each entry stores a record of the corresponding element in
samplers.
Discussion
By default, the sampler state at each index is nil.