Structure

MTLRegion

A rectangular block of pixels in an image or texture, defined by its upper-left corner and its size.

Declaration

typedef struct {
    ...
} MTLRegion;

Topics

Fields

origin

The location of the upper-left corner of the block.

size

The size of the block.

See Also

Region

MTLRegionMake1D

Returns a 1D region for image or texture data.

MTLRegionMake2D

Returns a 2D, rectangular region for image or texture data.

MTLRegionMake3D

Returns a 3D, cubic region for image or texture data.