ClearOptions

ClearOptions control how the SwapChain is cleared or discarded at the beginning of a frame.

The RenderTarget is cleared using the clearColor. The RenderTarget is cleared using this color, which won't be tone-mapped since tone-mapping is part of View rendering (this is not).

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Whether the SwapChain should be cleared using clearColor. Default: false.

Link copied to clipboard

RGBA clear color. Values are stored as doubles. The backend converts them as-is based on format.

Link copied to clipboard

Value to clear the stencil buffer to. Default: 0.

Link copied to clipboard

Whether the SwapChain content should be discarded. Default: true. Set false to preserve existing content.