#[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 ExternType for SampleMode
impl ExternType for SampleMode
Source§impl Hash for SampleMode
impl Hash for SampleMode
Source§impl PartialEq for SampleMode
impl PartialEq for SampleMode
impl Eq for SampleMode
impl StructuralPartialEq for SampleMode
impl UniquePtrTarget for SampleMode
impl VectorElement for SampleMode
impl WeakPtrTarget 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 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