pub struct TextureCoordinate2d { /* private fields */ }Expand description
Normalized texture coordinate with a top-left origin and downward V axis.
Both components are finite in 0..=1. Material UV transforms and addressing
control repetition independently of these source coordinates. Textures use
mip level zero by default and can opt into complete mip chains. Atlas cells
should map geometry to their edge texel centers for nearest sampling; linear
filtering also needs extruded gutters. Independent cropped tiles isolate
generated mip chains from neighboring atlas cells.
Implementations§
Trait Implementations§
Source§impl Clone for TextureCoordinate2d
impl Clone for TextureCoordinate2d
Source§fn clone(&self) -> TextureCoordinate2d
fn clone(&self) -> TextureCoordinate2d
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextureCoordinate2d
Source§impl Debug for TextureCoordinate2d
impl Debug for TextureCoordinate2d
Source§impl PartialEq for TextureCoordinate2d
impl PartialEq for TextureCoordinate2d
impl StructuralPartialEq for TextureCoordinate2d
Auto Trait Implementations§
impl Freeze for TextureCoordinate2d
impl RefUnwindSafe for TextureCoordinate2d
impl Send for TextureCoordinate2d
impl Sync for TextureCoordinate2d
impl Unpin for TextureCoordinate2d
impl UnsafeUnpin for TextureCoordinate2d
impl UnwindSafe for TextureCoordinate2d
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