#[repr(i32)]
pub enum DiscardRectangleMode {
Inclusive,
Exclusive,
}
Expand description
The mode in which the discard rectangle test operates.
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 more
sourceimpl 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
Performs the conversion.
sourceimpl Hash for DiscardRectangleMode
impl Hash for DiscardRectangleMode
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more