Function

MTLClearColorMake

Returns a value used to clear a color attachment (in effect, when the loadAction property of MTLRenderPassAttachmentDescriptor is MTLLoadActionClear).

Declaration

MTLClearColor MTLClearColorMake(double red, double green, double blue, double alpha);

Parameters

red

The red color channel clearing value.

green

The green color channel clearing value.

blue

The blue color channel clearing value.

alpha

The alpha color channel clearing value.

Return Value

A value for clearing a color attachment.

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