Struct three_d::core::render_states::RenderStates
source · pub struct RenderStates {
pub write_mask: WriteMask,
pub depth_test: DepthTest,
pub blend: Blend,
pub cull: Cull,
}
Expand description
A set of render specific states that has to be specified at each render call.
Fields§
§write_mask: WriteMask
Defines which channels (red, green, blue, alpha and depth) to write to in a render call.
depth_test: DepthTest
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: Blend
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.
cull: Cull
Defines whether the triangles that are backfacing, frontfacing or both should be skipped in a render call.
Trait Implementations§
source§impl Clone for RenderStates
impl Clone for RenderStates
source§fn clone(&self) -> RenderStates
fn clone(&self) -> RenderStates
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 RenderStates
impl Debug for RenderStates
source§impl Default for RenderStates
impl Default for RenderStates
source§fn default() -> RenderStates
fn default() -> RenderStates
Returns the “default value” for a type. Read more
impl Copy for RenderStates
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§
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