[−][src]Struct luminance::render_state::RenderState
GPU render state.
You can get a default value with RenderState::default
and set the operations you want with the
various RenderState::set_*
methods.
Methods
impl RenderState
[src]
pub fn set_blending<B>(self, blending: B) -> Self where
B: Into<Option<(Equation, Factor, Factor)>>,
[src]
B: Into<Option<(Equation, Factor, Factor)>>,
Override the blending configuration.
pub fn blending(self) -> Option<(Equation, Factor, Factor)>
[src]
Blending configuration.
pub fn set_depth_test<D>(self, depth_test: D) -> Self where
D: Into<Option<DepthComparison>>,
[src]
D: Into<Option<DepthComparison>>,
Override the depth test configuration.
pub fn depth_test(self) -> Option<DepthComparison>
[src]
Depth test configuration.
pub fn set_face_culling<FC>(self, face_culling: FC) -> Self where
FC: Into<Option<FaceCulling>>,
[src]
FC: Into<Option<FaceCulling>>,
Override the face culling configuration.
pub fn face_culling(self) -> Option<FaceCulling>
[src]
Face culling configuration.
Trait Implementations
impl Clone for RenderState
[src]
fn clone(&self) -> RenderState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RenderState
[src]
impl Default for RenderState
[src]
fn default() -> Self
[src]
The default RenderState
.
blending
:None
depth_test
:Some(DepthComparison::Less)
face_culling
:None
impl Eq for RenderState
[src]
impl PartialEq<RenderState> for RenderState
[src]
fn eq(&self, other: &RenderState) -> bool
[src]
fn ne(&self, other: &RenderState) -> bool
[src]
impl StructuralEq for RenderState
[src]
impl StructuralPartialEq for RenderState
[src]
Auto Trait Implementations
impl RefUnwindSafe for RenderState
impl Send for RenderState
impl Sync for RenderState
impl Unpin for RenderState
impl UnwindSafe for RenderState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,