Instance Method

setSamplerState(_:index:)

Encodes a sampler into the argument buffer.

Required.

Declaration

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

Parameters

sampler

A sampler to encode.

index

The index of the sampler within the argument buffer. This value corresponds to either the index ID of a Metal shading language declaration or the index field of a MTLArgumentDescriptor object.

See Also

Encoding Samplers

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

Encodes an array of samplers into the argument buffer.