setSamplerStates(_:range:)
Encodes multiple texture samplers to the sampler argument table, allowing compute kernels to use them for sampling textures on the GPU.
Declaration
func setSamplerStates(_ samplers: [(any MTLSamplerState)?], range: Range<Int>)Parameters
- samplers:
An array of Mtlsamplerstate instance to bind to the sampler argument table.
- range:
The sampler table indicies to bind each of the
samplersto, in the order they appear.