Instance Property

clipRect

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

Declaration

var clipRect: MTLRegion { get set }

Discussion

This value indicates which part of the destination to overwrite. If the clip rectangle does not lie completely within the destination image, then the intersection between the clip rectangle and destination bounds is used instead.

The default value is MPSRectNoClip, indicating that the entire image is used.

See Also

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.