pub enum SpreadMode {
Pad,
Reflect,
Repeat,
}
Expand description
A shader spreading mode.
Variants§
Pad
Replicate the edge color if the shader draws outside of its original bounds.
Reflect
Repeat the shader’s image horizontally and vertically, alternating mirror images so that adjacent images always seam.
Repeat
Repeat the shader’s image horizontally and vertically.
Trait Implementations§
source§impl Clone for SpreadMode
impl Clone for SpreadMode
source§fn clone(&self) -> SpreadMode
fn clone(&self) -> SpreadMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpreadMode
impl Debug for SpreadMode
source§impl Default for SpreadMode
impl Default for SpreadMode
source§impl PartialEq for SpreadMode
impl PartialEq for SpreadMode
impl Copy for SpreadMode
impl StructuralPartialEq for SpreadMode
Auto Trait Implementations§
impl Freeze for SpreadMode
impl RefUnwindSafe for SpreadMode
impl Send for SpreadMode
impl Sync for SpreadMode
impl Unpin for SpreadMode
impl UnwindSafe for SpreadMode
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)