Enumeration

MPSImageEdgeMode

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

Declaration

typedef enum MPSImageEdgeMode : NSUInteger {
    ...
} MPSImageEdgeMode;

Topics

Constants

MPSImageEdgeModeZero

Out-of-bound pixels are set to (0.0, 0.0, 0.0, 1.0) for images without an alpha channel or (0.0, 0.0, 0.0, 0.0) for images with an alpha channel, as defined by their pixel format.

MPSImageEdgeModeClamp

Out-of-bound pixels are clamped to the nearest edge pixel.

See Also

Properties

offset

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

MPSOffset

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

clipRect

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

MPSRegion

A region of an image.

edgeMode

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