Back to Filament

ClearOptions

docs/android/dokka/filament-android/com.google.android.filament/-renderer/-clear-options/index.md

1.75.01.2 KB
Original Source

//filament-android/com.google.android.filament/Renderer/ClearOptions

ClearOptions

[main]
open class ClearOptions

ClearOptions are used at the beginning of a frame to clear or retain the SwapChain content.

Constructors

ClearOptions[main]
constructor()

Properties

NameSummary
clear[main]
open var clear: Boolean
Whether the SwapChain should be cleared using the clearColor.
clearColor[main]
open var clearColor: Array<Double>
Color (sRGB linear) to use to clear the RenderTarget (typically the SwapChain).
discard[main]
open var discard: Boolean
Whether the SwapChain content should be discarded.