pub enum Blend {
Linear,
Nearest,
None,
}Expand description
How a channel’s values may be combined when a new vertex appears.
This is a property of the DATA, not of the operation. An operation asks the channel what is permissible; it does not decide on the channel’s behalf.
Variants§
Linear
Values are continuous and may be linearly interpolated.
Appropriate for texture coordinates, temperatures, displacements.
Nearest
Values are labels. A new vertex takes the value of the nearest existing one; averaging two ids would invent a third that names nothing.
None
Values cannot be derived for a vertex that did not exist before.
The channel is dropped rather than guessed at.
Trait Implementations§
impl Copy for Blend
impl Eq for Blend
impl StructuralPartialEq for Blend
Auto Trait Implementations§
impl Freeze for Blend
impl RefUnwindSafe for Blend
impl Send for Blend
impl Sync for Blend
impl Unpin for Blend
impl UnwindSafe for Blend
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more