Function

MTLClearColorMake(_:_:_:_:)

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

Declaration

func MTLClearColorMake(_ red: Double, _ green: Double, _ blue: Double, _ alpha: Double) -> MTLClearColor

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