pub enum AddressMode {
Wrap,
Clamp,
Mirror,
Border,
}Expand description
Texture coordinate wrapping mode (maps to cudaTextureAddressMode).
Variants§
Wrap
Coordinates wrap (tile).
Clamp
Coordinates are clamped to the boundary.
Mirror
Coordinates are mirrored at every boundary.
Border
Out-of-range coordinates return the border colour.
Trait Implementations§
Source§impl Clone for AddressMode
impl Clone for AddressMode
Source§fn clone(&self) -> AddressMode
fn clone(&self) -> AddressMode
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 AddressMode
impl Debug for AddressMode
Source§impl Hash for AddressMode
impl Hash for AddressMode
Source§impl PartialEq for AddressMode
impl PartialEq for AddressMode
impl Copy for AddressMode
impl Eq for AddressMode
impl StructuralPartialEq for AddressMode
Auto Trait Implementations§
impl Freeze for AddressMode
impl RefUnwindSafe for AddressMode
impl Send for AddressMode
impl Sync for AddressMode
impl Unpin for AddressMode
impl UnsafeUnpin for AddressMode
impl UnwindSafe for AddressMode
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