pub struct UvMap {
pub scale: [f64; 2],
pub offset: [f64; 2],
}Expand description
The map a program applies to a texture coordinate, sampled = scale * input + offset on each axis (affine_uv).
Fields§
§scale: [f64; 2]The factor on each axis.
offset: [f64; 2]The offset on each axis.
Trait Implementations§
impl Copy for UvMap
impl StructuralPartialEq for UvMap
Auto Trait Implementations§
impl Freeze for UvMap
impl RefUnwindSafe for UvMap
impl Send for UvMap
impl Sync for UvMap
impl Unpin for UvMap
impl UnsafeUnpin for UvMap
impl UnwindSafe for UvMap
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