Structure

MPSRegion

A region of an image.

Declaration

struct MPSRegion

Topics

Instance Properties

var origin: MPSOrigin

The top-left corner of the region.

struct MPSOrigin

A position in an image used as the source origin.

var size: MPSSize

The size of the region.

struct MPSSize

A size of a region in an image.

See Also

Properties

var offset: MPSOffset

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

struct MPSOffset

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

var clipRect: MTLRegion

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

var edgeMode: MPSImageEdgeMode

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

enum MPSImageEdgeMode

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