Contents

setSamplerState(_:index:)

Encodes a sampler into the argument buffer.

Declaration

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

Parameters

  • sampler:

    A sampler the method encodes.

  • index:

    The index of a sampler within the argument buffer. The value corresponds to either the index ID of a declaration in Metal Shading Language (MSL) or the Index property of an Mtlargumentdescriptor instance.

See Also

Encoding samplers