Contents

setSamplerStates(_:lodMinClamps:lodMaxClamps:range:)

Encodes multiple texture samplers for the compute function, specifying clamp values for the level of detail of each sampler.

Declaration

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

Parameters

  • samplers:

    A list of Mtlsamplerstate instances to bind to the sampler argument table.

  • lodMinClamps:

    An array of minimum levels of detail to use for the corresponding sampler in samplers.

  • lodMaxClamps:

    An array of maximum levels of detail to use for the corresponding sample in samplers.

  • range:

    A range of indices in the sampler state argument table.

Discussion

Calling this method ignores the lodMinClamp and lodMaxClamp properties of the samplers, using the provided levels of detail instead.

See Also

Binding texture samplers