Struct simple_wgpu::RasteriserState
source · 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 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 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<RasteriserState> for RasteriserState
impl PartialEq<RasteriserState> for RasteriserState
source§fn eq(&self, other: &RasteriserState) -> bool
fn eq(&self, other: &RasteriserState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RasteriserState
impl StructuralEq for RasteriserState
impl StructuralPartialEq for RasteriserState
Auto Trait Implementations§
impl RefUnwindSafe for RasteriserState
impl Send for RasteriserState
impl Sync for RasteriserState
impl Unpin for RasteriserState
impl UnwindSafe for RasteriserState
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.