Function

MTLRegionMake1D

Returns a 1D region for image or texture data.

Declaration

MTLRegion MTLRegionMake1D(NSUInteger x, NSUInteger width);

Parameters

x

The x coordinate of one corner of a 1D block of image or texture data.

width

The width of a 1D block of image or texture data, in pixels.

Return Value

A 1D block of image or texture data.

See Also

Creating Regions

MTLRegionMake2D

Returns a 2D, rectangular region for image or texture data.

MTLRegionMake3D

Returns a 3D, cubic region for image or texture data.

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