pub enum Address {
Wrap,
Clamp,
Mirror,
MirrorOnce,
Border,
}Expand description
Where a texel index outside the texture reads (the address modes of Direct3D’s D3D11_TEXTURE_ADDRESS_MODE).
Variants§
Wrap
Repeats the texture.
Clamp
The edge texel.
Mirror
Repeats the texture, every other copy mirrored.
MirrorOnce
Mirrored once about the origin, then the edge texel.
Border
No texel: an index outside the texture reads the border colour (Addressing::border).
Trait Implementations§
impl Copy for Address
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Forget for Address
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnsafeUnpin for Address
impl UnwindSafe for Address
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