Contents

MTLSamplerDescriptor

An object that you use to configure a texture sampler.

Declaration

class MTLSamplerDescriptor

Mentioned in

Overview

To make a sampler, create and configure an MTLSamplerDescriptor instance and then call an MTLDevice instance’s makeSamplerState(descriptor:) method. After you create the sampler, you can release the descriptor or reconfigure its properties to create other samplers.

Topics

Declaring the coordinate space

Declaring addressing modes

Declaring filter modes

Declaring the depth comparison mode

Declaring whether the sampler can be used in argument buffers

Identifying the sampler

Instance Properties

See Also

Texture samplers