startTask(toClear:)
Fills the entire destination with black or clear depending on its Alphamode.
Declaration
func startTask(toClear destination: CIRenderDestination) throws -> CIRenderTaskParameters
- destination:
The Cirenderdestination to clear.
Return Value
The asynchronous CIRenderTask for clearing the destination.
Discussion
If the destination’s alphaMode is CIRenderDestinationAlphaMode.none, this command fills the entire destination with black (0, 0, 0, 1).
If the destination’s alphaMode is CIRenderDestinationAlphaMode.premultiplied or CIRenderDestinationAlphaMode.unpremultiplied, this command fills the entire destination with clear (0, 0, 0, 0).