Contents

setSamplerStates(_:range:)

Encodes an array of samplers into the argument buffer.

Declaration

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

Parameters

  • samplers:

    An array of samplers the method encodes.

  • range:

    A range of indices within the argument buffer for each element in samplers. The values correspond to either the index IDs of declarations in Metal Shading Language (MSL) or the Index property of Mtlargumentdescriptor instances.

See Also

Encoding samplers