#[non_exhaustive]
#[repr(i32)]
pub enum DiscardRectangleMode {
Inclusive,
Exclusive,
}
Expand description
The mode in which the discard rectangle test operates.
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.
Inclusive
Samples that are inside a rectangle are kept, samples that are outside all rectangles are discarded.
Exclusive
Samples that are inside a rectangle are discarded, samples that are outside all rectangles are kept.
Trait Implementations
sourceimpl Clone for DiscardRectangleMode
impl Clone for DiscardRectangleMode
sourcefn clone(&self) -> DiscardRectangleMode
fn clone(&self) -> DiscardRectangleMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DiscardRectangleMode
impl Debug for DiscardRectangleMode
sourceimpl From<DiscardRectangleMode> for DiscardRectangleModeEXT
impl From<DiscardRectangleMode> for DiscardRectangleModeEXT
sourcefn from(val: DiscardRectangleMode) -> Self
fn from(val: DiscardRectangleMode) -> Self
Converts to this type from the input type.
sourceimpl Hash for DiscardRectangleMode
impl Hash for DiscardRectangleMode
sourceimpl PartialEq<DiscardRectangleMode> for DiscardRectangleMode
impl PartialEq<DiscardRectangleMode> for DiscardRectangleMode
sourcefn eq(&self, other: &DiscardRectangleMode) -> bool
fn eq(&self, other: &DiscardRectangleMode) -> bool
impl Copy for DiscardRectangleMode
impl Eq for DiscardRectangleMode
impl StructuralEq for DiscardRectangleMode
impl StructuralPartialEq for DiscardRectangleMode
Auto Trait Implementations
impl RefUnwindSafe for DiscardRectangleMode
impl Send for DiscardRectangleMode
impl Sync for DiscardRectangleMode
impl Unpin for DiscardRectangleMode
impl UnwindSafe for DiscardRectangleMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more