pub struct WarpField<'a> {
pub cols: u32,
pub rows: u32,
pub vertices: &'a [WarpVertex],
}Expand description
Per-vertex warp-displacement field, borrowed from the renderer’s
most recent update_warp_vertices call. vertices[r * cols + c]
matches the warp mesh’s row-major layout; the segment builder
recovers uv_orig from pos_clip (inverse of the same mapping
WarpMesh::new uses) and reports the displacement
uv_warp - uv_orig at the grid cell’s nearest mesh vertex.
Fields§
§cols: u32§rows: u32§vertices: &'a [WarpVertex]Auto Trait Implementations§
impl<'a> Freeze for WarpField<'a>
impl<'a> RefUnwindSafe for WarpField<'a>
impl<'a> Send for WarpField<'a>
impl<'a> Sync for WarpField<'a>
impl<'a> Unpin for WarpField<'a>
impl<'a> UnwindSafe for WarpField<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more