Struct three_d::RenderStates [−][src]
pub struct RenderStates { pub write_mask: WriteMask, pub depth_test: DepthTestType, pub blend: Option<BlendParameters>, }
Expand description
A set of render specific states that has to be specified at each render call.
Fields
write_mask: WriteMask
Expand description
Defines which channels (red, green, blue, alpha and depth) to write to in a render call.
depth_test: DepthTestType
Expand description
Defines the depth test in a render call. The depth test determines whether or not a fragment from the current render call should be discarded when comparing its depth with the depth of the current fragment.
blend: Option<BlendParameters>
Expand description
Defines which type of blending to use for a render call. Blending allows combining each color channel of a render call with the color already in the color channels of the render target. This is usually used to simulate transparency.
Trait Implementations
impl Clone for RenderStates
[src]
impl Clone for RenderStates
[src]fn clone(&self) -> RenderStates
[src]
fn clone(&self) -> RenderStates
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for RenderStates
[src]
impl Debug for RenderStates
[src]impl Default for RenderStates
[src]
impl Default for RenderStates
[src]impl Copy for RenderStates
[src]
Auto Trait Implementations
impl RefUnwindSafe for RenderStates
impl Send for RenderStates
impl Sync for RenderStates
impl Unpin for RenderStates
impl UnwindSafe for RenderStates
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more