Enum let_engine::texture::AddressMode
source · pub enum AddressMode {
Repeat,
Mirrored,
ClampToEdge,
ClampToBorder,
}
Expand description
Handling of pixels outside the position range of the texture.
Variants§
Repeat
Repeats the texture.
Mirrored
Repeats the texture mirrored.
ClampToEdge
Coordinates outside 0 - 1 are clamped to 0 - 1.
ClampToBorder
Coordinates outside 0 - 1 are colored to the border color settable in the Sampler struct.
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§
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