Struct three_d::core::render_target::ClearState [−][src]
pub struct ClearState {
pub red: Option<f32>,
pub green: Option<f32>,
pub blue: Option<f32>,
pub alpha: Option<f32>,
pub depth: Option<f32>,
}
Expand description
Defines which channels (red, green, blue, alpha and depth) to clear when starting to write to a
RenderTarget or the Screen.
If None
then the channel is not cleared and if Some(value)
the channel is cleared to that value (the value must be between 0 and 1).
Fields
red: Option<f32>
Defines the clear value for the red channel.
green: Option<f32>
Defines the clear value for the green channel.
blue: Option<f32>
Defines the clear value for the blue channel.
alpha: Option<f32>
Defines the clear value for the alpha channel.
depth: Option<f32>
Defines the clear value for the depth channel. A value of 1 means a depth value equal to the far plane and 0 means a depth value equal to the near plane.
Implementations
The color channels (red, green, blue and alpha) will be cleared to the given values.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ClearState
impl Send for ClearState
impl Sync for ClearState
impl Unpin for ClearState
impl UnwindSafe for ClearState
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more