clearColor
The color to use to clear the color target when creating a render pass descriptor.
Declaration
var clearColor: MTLClearColor { get set }Discussion
When the view creates a render pass, it sets the load action for the color render target to MTLLoadAction.clear and uses this color as the clear color. The default value is (0.0, 0.0, 0.0, 1.0).