Instance Property


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


var offset: MPSOffset { get set }


The offset is defined to be the position of the origin value of clipRect, in source coordinates.

The default value is {0, 0, 0}, indicating that the top left corners of the clip rectangle and the source image align.

See Also


struct MPSOffset

A signed coordinate with x, y, and z components.

var clipRect: MTLRegion

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

struct MPSRegion

A region of an image.

var edgeMode: MPSImageEdgeMode

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

enum MPSImageEdgeMode

The options used to control the edge behavior of an image filter when it reads outside the bounds of a source texture.