Function

MTLRegionMake1D

Creates a 3D representation of a 1D region.

Declaration

MTLRegion MTLRegionMake1D(NSUInteger x, NSUInteger width);

Parameters

x

The x coordinate of the origin.

width

The width of the volume.

Return Value

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

See Also

Creating Regions

MTLRegionMake2D

Creates a 3D representation of a 2D region.

MTLRegionMake3D

Creates a 3D region.