pub enum AddressMode {
ClampToEdge,
MirrorRepeat,
Repeat,
}Expand description
What a sampler does with coordinates that fall outside [0, 1].
One value per texture axis (addressModeU, addressModeV,
addressModeW on the wire). The W axis is only meaningful for 3D
textures; for 2D textures it is accepted and ignored.
Variants§
ClampToEdge
Clamp to the edge texel, stretching it outwards. The right default for anything that is not meant to tile.
MirrorRepeat
Mirror the texture at each edge, so 0..1 then 1..0 then 0..1.
Repeat
Tile the texture, so 0..1 then 0..1 again.
Trait Implementations§
Source§impl Clone for AddressMode
impl Clone for AddressMode
impl Copy for AddressMode
Source§impl Debug for AddressMode
impl Debug for AddressMode
Source§impl Default for AddressMode
impl Default for AddressMode
impl Eq for AddressMode
Source§impl Hash for AddressMode
impl Hash for AddressMode
Source§impl PartialEq for AddressMode
impl PartialEq for AddressMode
impl StructuralPartialEq for AddressMode
Auto Trait Implementations§
impl Freeze for AddressMode
impl RefUnwindSafe for AddressMode
impl Send for AddressMode
impl Sync for AddressMode
impl Unpin for AddressMode
impl UnsafeUnpin 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