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 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
sourceimpl ClearState
impl ClearState
Trait Implementations
sourceimpl Clone for ClearState
impl Clone for ClearState
sourcefn clone(&self) -> ClearState
fn clone(&self) -> ClearState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ClearState
impl Debug for ClearState
sourceimpl Default for ClearState
impl Default for ClearState
sourceimpl PartialEq<ClearState> for ClearState
impl PartialEq<ClearState> for ClearState
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &ClearState) -> bool
fn ne(&self, other: &ClearState) -> bool
This method tests for !=.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more