Enum luminance_front::texture::Wrap
source · [−]pub enum Wrap {
ClampToEdge,
Repeat,
MirroredRepeat,
}
Expand description
How to wrap texture coordinates while sampling textures?
Variants
ClampToEdge
If textures coordinates lay outside of [0;1]
, they will be clamped to either 0
or 1
for
every components.
Repeat
Textures coordinates are repeated if they lay outside of [0;1]
. Picture this as:
ⓘ
// given the frac function returning the fractional part of a floating number:
coord_ith = frac(coord_ith); // always between `[0;1]`
MirroredRepeat
Same as Repeat
but it will alternatively repeat between [0;1]
and [1;0]
.
Trait Implementations
impl Copy for Wrap
impl Eq for Wrap
impl StructuralEq for Wrap
impl StructuralPartialEq for Wrap
Auto Trait Implementations
impl RefUnwindSafe for Wrap
impl Send for Wrap
impl Sync for Wrap
impl Unpin for Wrap
impl UnwindSafe for Wrap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more