A kernel that consumes two textures and produces one texture.
- iOS 9.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Metal Performance Shaders
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.
The position of the destination clip rectangle origin relative to the primary source buffer.
The position of the destination clip rectangle origin relative to the secondary source buffer.
The edge mode to use when texture reads stray off the edge of the primary source image.
The edge mode to use when texture reads stray off the edge of the secondary source image.
An optional clip rectangle to use when writing data. Only the pixels in the rectangle will be overwritten.
Image Filter Base Classes