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.