Class

MPSBinaryImageKernel

A kernel that consumes two textures and produces one texture.

Declaration

class MPSBinaryImageKernel : MPSKernel

Overview

MPSBinaryImageKernel defines shared behavior for most image processing kernels (filters) such as edging modes, clipping, and tiling support for image operations that consume two source textures. It is not meant to be used directly, but provides API abstraction and in some cases may allow some level of polymorphic manipulation of image kernel objects.

Topics

Properties

var primaryOffset: MPSOffset

The position of the destination clip rectangle origin relative to the primary source buffer.

var secondaryOffset: MPSOffset

The position of the destination clip rectangle origin relative to the secondary source buffer.

var primaryEdgeMode: MPSImageEdgeMode

The edge mode to use when texture reads stray off the edge of the primary source image.

var secondaryEdgeMode: MPSImageEdgeMode

The edge mode to use when texture reads stray off the edge of the secondary source image.

var clipRect: MTLRegion

An optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten.

Relationships

Inherits From

Conforms To

See Also

Image Filter Base Classes

class MPSUnaryImageKernel

A kernel that consumes one texture and produces one texture.