#[repr(u32)]pub enum Cull {
Back = 0,
Front = 1,
None = 2,
}
Expand description
Culling is discarding an object from the render pipeline! This enum describes how mesh faces get discarded on the graphics card. With culling set to none, you can double the number of pixels the GPU ends up drawing, which can have a big impact on performance. None can be appropriate in cases where the mesh is designed to be ‘double sided’. Front can also be helpful when you want to flip a mesh ‘inside-out’! https://stereokit.net/Pages/StereoKit/Cull.html
Variants§
Back = 0
Discard if the back of the triangle face is pointing towards the camera. This is the default behavior.
Front = 1
Discard if the front of the triangle face is pointing towards the camera. This is opposite the default behavior.
None = 2
No culling at all! Draw the triangle regardless of which way it’s pointing.
Trait Implementations§
impl Copy for Cull
impl Eq for Cull
impl StructuralPartialEq for Cull
Auto Trait Implementations§
impl Freeze for Cull
impl RefUnwindSafe for Cull
impl Send for Cull
impl Sync for Cull
impl Unpin for Cull
impl UnwindSafe for Cull
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