Contents

reductionMode

Sets the reduction mode for filtering contributing samples.

Declaration

var reductionMode: MTLSamplerReductionMode { get set }

Discussion

The property’s default value is MTLSamplerReductionModeWeightedAverage. The sampler ignores this property if any of the following property values are equal to a specific value:

  • The sampler’s mipFilter property is equal to MTLSamplerMipFilterNotMipmapped.

  • The sampler’s mipFilter property is equal to MTLSamplerMipFilterNearest.

  • The sampler’s minFilter property is equal to MTLSamplerMinMagFilterNearest.

  • The sampler’s magFilter property is equal to MTLSamplerMinMagFilterNearest.