Function

MTLSizeMake

Creates a size for an object using the specified dimensions.

Declaration

MTLSize MTLSizeMake(NSUInteger width, NSUInteger height, NSUInteger depth);

Parameters

width

The width of the object.

height

The height of the object. Set to 1 if the object only has one dimension.

depth

The depth of the object. Set to 1 if the object has one or two dimensions.

Return Value

The specified size of an object.

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