pub struct RasteriserState {
pub front_face: FrontFace,
pub cull_mode: Option<Face>,
pub depth_write: bool,
pub depth_compare: CompareFunction,
pub polygon_mode: PolygonMode,
}
Expand description
The set of rendering state that is convenient to vary on a per-draw basis
Fields§
§front_face: FrontFace
§cull_mode: Option<Face>
§depth_write: bool
§depth_compare: CompareFunction
§polygon_mode: PolygonMode
Trait Implementations§
Source§impl Clone for RasteriserState
impl Clone for RasteriserState
Source§fn clone(&self) -> RasteriserState
fn clone(&self) -> RasteriserState
Returns a duplicate 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 RasteriserState
impl Debug for RasteriserState
Source§impl Default for RasteriserState
impl Default for RasteriserState
Source§impl Hash for RasteriserState
impl Hash for RasteriserState
Source§impl PartialEq for RasteriserState
impl PartialEq for RasteriserState
impl Eq for RasteriserState
impl StructuralPartialEq for RasteriserState
Auto Trait Implementations§
impl Freeze for RasteriserState
impl RefUnwindSafe for RasteriserState
impl Send for RasteriserState
impl Sync for RasteriserState
impl Unpin for RasteriserState
impl UnwindSafe for RasteriserState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.