Enum kn_cuda_sys::bindings::CUaddress_mode_enum
source · #[non_exhaustive]#[repr(u32)]pub enum CUaddress_mode_enum {
CU_TR_ADDRESS_MODE_WRAP = 0,
CU_TR_ADDRESS_MODE_CLAMP = 1,
CU_TR_ADDRESS_MODE_MIRROR = 2,
CU_TR_ADDRESS_MODE_BORDER = 3,
}Expand description
Texture reference addressing modes
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.
CU_TR_ADDRESS_MODE_WRAP = 0
< Wrapping address mode
CU_TR_ADDRESS_MODE_CLAMP = 1
< Clamp to edge address mode
CU_TR_ADDRESS_MODE_MIRROR = 2
< Mirror address mode
CU_TR_ADDRESS_MODE_BORDER = 3
< Border address mode
Trait Implementations§
source§impl Clone for CUaddress_mode_enum
impl Clone for CUaddress_mode_enum
source§fn clone(&self) -> CUaddress_mode_enum
fn clone(&self) -> CUaddress_mode_enum
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 CUaddress_mode_enum
impl Debug for CUaddress_mode_enum
source§impl Hash for CUaddress_mode_enum
impl Hash for CUaddress_mode_enum
source§impl PartialEq for CUaddress_mode_enum
impl PartialEq for CUaddress_mode_enum
source§fn eq(&self, other: &CUaddress_mode_enum) -> bool
fn eq(&self, other: &CUaddress_mode_enum) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for CUaddress_mode_enum
impl Eq for CUaddress_mode_enum
impl StructuralPartialEq for CUaddress_mode_enum
Auto Trait Implementations§
impl RefUnwindSafe for CUaddress_mode_enum
impl Send for CUaddress_mode_enum
impl Sync for CUaddress_mode_enum
impl Unpin for CUaddress_mode_enum
impl UnwindSafe for CUaddress_mode_enum
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