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