Enum nannou::wgpu::AddressMode [−]
#[repr(C)] pub enum AddressMode { ClampToEdge, Repeat, MirrorRepeat, ClampToBorder, }
Expand description
How edges should be handled in texture addressing.
Variants
Clamp the value to the edge of the texture
-0.25 -> 0.0 1.25 -> 1.0
Repeat the texture in a tiling fashion
-0.25 -> 0.75 1.25 -> 0.25
Repeat the texture, mirroring it every repeat
-0.25 -> 0.25 1.25 -> 0.75
Clamp the value to the border of the texture
Requires feature Features::ADDRESS_MODE_CLAMP_TO_BORDER
-0.25 -> border 1.25 -> border
Trait Implementations
impl Clone for AddressMode
impl Clone for AddressMode
pub fn clone(&self) -> AddressMode
pub fn clone(&self) -> AddressMode
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for AddressMode
impl Debug for AddressMode
impl Default for AddressMode
impl Default for AddressMode
pub fn default() -> AddressMode
pub fn default() -> AddressMode
Returns the “default value” for a type. Read more
impl Hash for AddressMode
impl Hash for AddressMode
impl PartialEq<AddressMode> for AddressMode
impl PartialEq<AddressMode> for AddressMode
impl Copy for AddressMode
impl Eq for AddressMode
impl StructuralEq for AddressMode
impl StructuralPartialEq for AddressMode
Auto Trait Implementations
impl RefUnwindSafe for AddressMode
impl Send for AddressMode
impl Sync for AddressMode
impl Unpin for AddressMode
impl UnwindSafe for AddressMode
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V