Struct wgpu_types::PrimitiveState [−][src]
Describes the state of primitive assembly and rasterization in a render pipeline.
Fields
topology: PrimitiveTopology
The primitive topology used to interpret vertices.
strip_index_format: Option<IndexFormat>
The format of index buffers for strip topologies. Should be left None
for non-strip.
front_face: FrontFace
The face to consider the front for the purpose of culling and stencil operations.
cull_mode: CullMode
The fact culling mode.
polygon_mode: PolygonMode
Controls the way each polygon is rasterized. Can be either Fill
(default), Line
or Point
Setting this to something other than Fill
requires Features::NON_FILL_POLYGON_MODE
to be enabled.
Trait Implementations
impl Clone for PrimitiveState
[src]
fn clone(&self) -> PrimitiveState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PrimitiveState
[src]
impl Default for PrimitiveState
[src]
fn default() -> PrimitiveState
[src]
impl PartialEq<PrimitiveState> for PrimitiveState
[src]
fn eq(&self, other: &PrimitiveState) -> bool
[src]
fn ne(&self, other: &PrimitiveState) -> bool
[src]
impl StructuralPartialEq for PrimitiveState
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveState
[src]
impl Send for PrimitiveState
[src]
impl Sync for PrimitiveState
[src]
impl Unpin for PrimitiveState
[src]
impl UnwindSafe for PrimitiveState
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,