Contents

setFragmentSamplerState(_:index:)

Assigns a sampler state to an entry in the fragment shader argument table.

Declaration

func setFragmentSamplerState(_ sampler: (any MTLSamplerState)?, index: Int)

Parameters

  • sampler:

    An Mtlsamplerstate instance the command assigns to an entry in the fragment shader argument table for sampler states.

  • index:

    An integer that represents the entry in the fragment shader argument table for sampler states that stores a record of sampler.

Discussion

By default, the sampler state at each index is nil.

See Also

Assigning sampler states