Struct three_d::core::render_target::ClearState
source · 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.
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§
Trait Implementations§
source§impl Clone for ClearState
impl Clone for ClearState
source§fn clone(&self) -> ClearState
fn clone(&self) -> ClearState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClearState
impl Debug for ClearState
source§impl Default for ClearState
impl Default for ClearState
source§impl PartialEq for ClearState
impl PartialEq for ClearState
source§fn eq(&self, other: &ClearState) -> bool
fn eq(&self, other: &ClearState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ClearState
impl StructuralPartialEq for ClearState
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more