Contents

setObjectSamplerStates(_:range:)

Assigns multiple sampler states to a range of entries in the object shader argument table.

Declaration

func setObjectSamplerStates(_ samplers: [(any MTLSamplerState)?], range: Range<Int>)

Parameters

  • samplers:

    An array of Mtlsamplerstate instances the command assigns to entries in the object shader argument table for sampler states.

  • range:

    A span of integers that represent the entries in the object 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.

See Also

Assigning sampler states for object shaders