Struct blade_graphics::PrimitiveState
source · pub struct PrimitiveState {
pub topology: PrimitiveTopology,
pub front_face: FrontFace,
pub cull_mode: Option<Face>,
pub unclipped_depth: bool,
pub wireframe: bool,
}Fields§
§topology: PrimitiveTopologyThe primitive topology used to interpret vertices.
front_face: FrontFaceThe face to consider the front for the purpose of culling and stencil operations.
cull_mode: Option<Face>The face culling mode.
unclipped_depth: boolIf set to true, the polygon depth is not clipped to 0-1 before rasterization.
wireframe: boolIf true, only the primitive edges are rasterized..
Trait Implementations§
source§impl Clone for PrimitiveState
impl Clone for PrimitiveState
source§fn clone(&self) -> PrimitiveState
fn clone(&self) -> PrimitiveState
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 PrimitiveState
impl Debug for PrimitiveState
source§impl Default for PrimitiveState
impl Default for PrimitiveState
source§fn default() -> PrimitiveState
fn default() -> PrimitiveState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PrimitiveState
impl Send for PrimitiveState
impl Sync for PrimitiveState
impl Unpin for PrimitiveState
impl UnwindSafe for PrimitiveState
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