Scaling Filters

These constants specify the scaling filters used by magnificationFilter and minificationFilter.



static let linear: CALayerContentsFilter

Linear interpolation filter.

static let nearest: CALayerContentsFilter

Nearest neighbor interpolation filter.

static let trilinear: CALayerContentsFilter

Trilinear minification filter. Enables mipmap generation. Some renderers may ignore this, or impose additional restrictions, such as source images requiring power-of-two dimensions.