#[repr(i32)]pub enum SampleMode {
kSTRICT_BOUNDS = 0,
kWRAP = 1,
kCLAMP = 2,
kFILL = 3,
kREFLECT = 4,
}Expand description
! ! \brief Controls how ISliceLayer and IGridSample handle out-of-bounds coordinates. ! ! \see ISliceLayer and IGridSample !
Variants§
kSTRICT_BOUNDS = 0
!< Fail with error when the coordinates are out of bounds.
kWRAP = 1
!< Coordinates wrap around periodically.
kCLAMP = 2
!< Out of bounds indices are clamped to bounds.
kFILL = 3
!< Use fill input value when coordinates are out of bounds.
kREFLECT = 4
!< Coordinates reflect. The axis of reflection is the middle of the perimeter pixel and the !< reflections are repeated indefinitely within the padded regions. Repeats values for a single !< pixel and throws error for zero pixels.
Trait Implementations§
Source§impl Clone for SampleMode
impl Clone for SampleMode
Source§fn clone(&self) -> SampleMode
fn clone(&self) -> SampleMode
Returns a duplicate 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 SampleMode
impl Debug for SampleMode
Source§impl From<SampleMode> for SampleMode
impl From<SampleMode> for SampleMode
Source§fn from(value: SampleMode) -> Self
fn from(value: SampleMode) -> Self
Converts to this type from the input type.
Source§impl Hash for SampleMode
impl Hash for SampleMode
Source§impl Into<SampleMode> for SampleMode
impl Into<SampleMode> for SampleMode
Source§fn into(self) -> SampleMode
fn into(self) -> SampleMode
Converts this type into the (usually inferred) input type.
Source§impl Ord for SampleMode
impl Ord for SampleMode
Source§fn cmp(&self, other: &SampleMode) -> Ordering
fn cmp(&self, other: &SampleMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SampleMode
impl PartialEq for SampleMode
Source§impl PartialOrd for SampleMode
impl PartialOrd for SampleMode
impl Copy for SampleMode
impl Eq for SampleMode
impl StructuralPartialEq for SampleMode
Auto Trait Implementations§
impl Freeze for SampleMode
impl RefUnwindSafe for SampleMode
impl Send for SampleMode
impl Sync for SampleMode
impl Unpin for SampleMode
impl UnsafeUnpin for SampleMode
impl UnwindSafe for SampleMode
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