Package com.google.android.filament
Class Renderer.ClearOptions
- java.lang.Object
-
- com.google.android.filament.Renderer.ClearOptions
-
- Enclosing class:
- Renderer
public static class Renderer.ClearOptions extends java.lang.ObjectClearOptions are used at the beginning of a frame to clear or retain the SwapChain content.
-
-
Field Summary
Fields Modifier and Type Field Description booleanclearWhether the SwapChain should be cleared using the clearColor.float[]clearColorColor to use to clear the SwapChainbooleandiscardWhether the SwapChain content should be discarded.
-
Constructor Summary
Constructors Constructor Description ClearOptions()
-
-
-
Field Detail
-
clearColor
@NonNull public float[] clearColor
Color to use to clear the SwapChain
-
clear
public boolean clear
Whether the SwapChain should be cleared using the clearColor. Use this if translucent View will be drawn, for instance.
-
discard
public boolean discard
Whether the SwapChain content should be discarded. clear implies discard. Set this to false (along with clear to false as well) if the SwapChain already has content that needs to be preserved
-
-