setMeshSamplerStates(_:range:)
Assigns multiple sampler states to a range of entries in the mesh shader argument table.
Declaration
func setMeshSamplerStates(_ samplers: [(any MTLSamplerState)?], range: Range<Int>)Parameters
- samplers:
An array of Mtlsamplerstate instances the command assigns to entries in the mesh shader argument table for sampler states.
- range:
A span of integers that represent the entries in the mesh 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.