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 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 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 Freeze for PrimitiveState
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