pub enum CullMode {
None,
Front,
Back,
}Expand description
Which triangle faces are discarded before rasterization.
Variants§
None
Keep both faces. The default, and the right choice for 2D content and for double-sided materials.
Front
Discard front-facing triangles.
Back
Discard back-facing triangles. The usual choice for closed solid geometry, which roughly halves rasterization work.
Trait Implementations§
impl Copy for CullMode
impl Eq for CullMode
impl StructuralPartialEq for CullMode
Auto Trait Implementations§
impl Freeze for CullMode
impl RefUnwindSafe for CullMode
impl Send for CullMode
impl Sync for CullMode
impl Unpin for CullMode
impl UnsafeUnpin for CullMode
impl UnwindSafe for CullMode
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