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.