Structure

MTLSize

A set of dimensions that declare the size of an object, such as an image, texture, threadgroup, or grid.

Declaration

typedef struct {
    ...
} MTLSize;

Topics

Creating Sizes

MTLSizeMake

Returns the specified size of an object, such as a texture or threadgroup.

Getting and Setting Dimensions

width

The x dimension of the object size.

height

The y dimension of the object size.

depth

The z dimension of the object size.

See Also

Image Sizing and Positioning

MTLOrigin

A location of a pixel in an image or texture relative to the upper-left corner, whose coordinates are (0,0).

MTLRegion

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

Beta Software

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