#[non_exhaustive]#[repr(i32)]pub enum DiscardRectangleMode {
Inclusive = 0,
Exclusive = 1,
}
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 = 0
Samples that are inside a rectangle are kept, samples that are outside all rectangles are discarded.
Exclusive = 1
Samples that are inside a rectangle are discarded, samples that are outside all rectangles are kept.
Trait Implementations§
source§impl Clone for DiscardRectangleMode
impl Clone for DiscardRectangleMode
source§fn clone(&self) -> DiscardRectangleMode
fn clone(&self) -> DiscardRectangleMode
Returns a copy 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 DiscardRectangleMode
impl Debug for DiscardRectangleMode
source§impl From<DiscardRectangleMode> for DiscardRectangleModeEXT
impl From<DiscardRectangleMode> for DiscardRectangleModeEXT
source§fn from(val: DiscardRectangleMode) -> Self
fn from(val: DiscardRectangleMode) -> Self
Converts to this type from the input type.
source§impl Hash for DiscardRectangleMode
impl Hash for DiscardRectangleMode
source§impl PartialEq for DiscardRectangleMode
impl PartialEq for DiscardRectangleMode
source§fn eq(&self, other: &DiscardRectangleMode) -> bool
fn eq(&self, other: &DiscardRectangleMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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