#[non_exhaustive]pub enum PipelineCullFaceMode {
None,
Front,
Back,
Both,
}
Expand description
Specifies which faces should be culled. This can be set on a
pipeline using Pipeline::set_cull_face_mode
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Neither face will be culled. This is the default.
Front
Front faces will be culled.
Back
Back faces will be culled.
Both
All faces will be culled.
Trait Implementations§
Source§impl Clone for PipelineCullFaceMode
impl Clone for PipelineCullFaceMode
Source§fn clone(&self) -> PipelineCullFaceMode
fn clone(&self) -> PipelineCullFaceMode
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 PipelineCullFaceMode
impl Debug for PipelineCullFaceMode
Source§impl Display for PipelineCullFaceMode
impl Display for PipelineCullFaceMode
Source§impl Hash for PipelineCullFaceMode
impl Hash for PipelineCullFaceMode
Source§impl Ord for PipelineCullFaceMode
impl Ord for PipelineCullFaceMode
Source§fn cmp(&self, other: &PipelineCullFaceMode) -> Ordering
fn cmp(&self, other: &PipelineCullFaceMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PipelineCullFaceMode
impl PartialEq for PipelineCullFaceMode
Source§impl PartialOrd for PipelineCullFaceMode
impl PartialOrd for PipelineCullFaceMode
impl Copy for PipelineCullFaceMode
impl Eq for PipelineCullFaceMode
impl StructuralPartialEq for PipelineCullFaceMode
Auto Trait Implementations§
impl Freeze for PipelineCullFaceMode
impl RefUnwindSafe for PipelineCullFaceMode
impl Send for PipelineCullFaceMode
impl Sync for PipelineCullFaceMode
impl Unpin for PipelineCullFaceMode
impl UnwindSafe for PipelineCullFaceMode
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