Function

MTLRegionMake3D

Creates a 3D region.

Declaration

MTLRegion MTLRegionMake3D(NSUInteger x, NSUInteger y, NSUInteger z, NSUInteger width, NSUInteger height, NSUInteger depth);

Parameters

x

The x coordinate of the origin.

y

The y coordinate of the origin.

z

The z coordinate of the origin.

width

The width of the volume.

height

The height of the volume.

depth

The depth of the volume.

Return Value

A 3D region with the specified values.

See Also

Creating Regions

MTLRegionMake1D

Creates a 3D representation of a 1D region.

MTLRegionMake2D

Creates a 3D representation of a 2D region.