pub enum AddressMode {
Repeat,
Mirror,
Clamp,
Border,
MirrorOnce,
}Expand description
What a texture coordinate outside 0 to 1 reads, along one axis.
Variants§
Repeat
The texture repeats.
Mirror
The texture repeats, every other copy mirrored.
Clamp
The edge texel.
Border
The sampler’s border colour.
MirrorOnce
Mirrored once about the origin, then the edge texel.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AddressMode
Source§impl Debug for AddressMode
impl Debug for AddressMode
impl Eq for AddressMode
Source§impl Hash for AddressMode
impl Hash for AddressMode
Source§impl Ord for AddressMode
impl Ord for AddressMode
Source§fn cmp(&self, other: &AddressMode) -> Ordering
fn cmp(&self, other: &AddressMode) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AddressMode
impl PartialEq for AddressMode
Source§impl PartialOrd for AddressMode
impl PartialOrd for AddressMode
Source§impl Serialize for AddressMode
impl Serialize for AddressMode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AddressMode
Auto Trait Implementations§
impl Forget for AddressMode
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