An optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten.
- iOS 9.0+
- macOS 10.13+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Metal Performance Shaders
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.
var offset: MPSOffset
The position of the destination clip rectangle origin relative to the source buffer.
The options used to control the edge behavior of an image filter when it reads outside the bounds of a source texture.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software