Contents

setFragmentSamplerStates(_:range:)

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

Declaration

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

Parameters

  • samplers:

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

  • range:

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