Struct three_d::core::WriteMask[][src]

pub struct WriteMask {
    pub red: bool,
    pub green: bool,
    pub blue: bool,
    pub alpha: bool,
    pub depth: bool,
}

Defines which channels (red, green, blue, alpha and depth) to write to in a render call.

Fields

red: boolgreen: boolblue: boolalpha: booldepth: bool

Implementations

impl WriteMask[src]

pub const COLOR_AND_DEPTH: Self[src]

Writes to all channels (red, green, blue, alpha and depth).

pub const COLOR: Self[src]

Writes to all color channels (red, green, blue and alpha).

pub const DEPTH: Self[src]

Writes to the depth channel only.

pub const NONE: Self[src]

Do not write to any channels.

Trait Implementations

impl Clone for WriteMask[src]

impl Copy for WriteMask[src]

impl Debug for WriteMask[src]

impl Default for WriteMask[src]

impl PartialEq<WriteMask> for WriteMask[src]

impl StructuralPartialEq for WriteMask[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.