Instance Method

setSamplerStates(_:range:)

Encodes an array of samplers into the argument buffer.

Declaration

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

Parameters

samplers

An array of samplers to encode.

range

A range of indices for the array of samplers within the argument buffer. These values correspond to either the index IDs of a Metal shading language declaration or the index fields of MTLArgumentDescriptor objects.

See Also

Encoding Samplers

func setSamplerState(MTLSamplerState?, index: Int)

Encodes a sampler into the argument buffer.

Required.