Function

MTLRegionMake2D

Creates a 3D representation of a 2D region.

Declaration

MTLRegion MTLRegionMake2D(NSUInteger x, NSUInteger y, NSUInteger width, NSUInteger height);

Parameters

x

The x coordinate of the origin.

y

The y coordinate of the origin.

width

The width of the volume.

height

The height of the volume.

Return Value

A region whose x, y, width, and height values are as specified. The z coordinate of the region's origin is set to 0, and the region's depth is set to 1.

See Also

Creating Regions

MTLRegionMake1D

Creates a 3D representation of a 1D region.

MTLRegionMake3D

Creates a 3D region.