Instance Property

primaryOffset

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

Declaration

var primaryOffset: MPSOffset { get set }

Discussion

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 primary source image align.

See Also

Properties

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.