pub struct WarpMesh {
pub cols: u32,
pub rows: u32,
pub aspect: f32,
pub vertices: Vec<WarpMeshVertex>,
pub indices: Vec<u32>,
}Expand description
Regular cols × rows warp grid.
Fields§
§cols: u32§rows: u32§aspect: f32Viewport aspect ratio (width / height). Stored so consumers can
expose it to shaders, but does not affect mesh geometry directly.
vertices: Vec<WarpMeshVertex>Vertices in row-major order: vertices[row * cols + col].
indices: Vec<u32>Triangle-list indices. Uint32 because cols × rows can blow past the
Uint16 ceiling for high-resolution meshes (192×96 = 18 432 verts).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WarpMesh
impl RefUnwindSafe for WarpMesh
impl Send for WarpMesh
impl Sync for WarpMesh
impl Unpin for WarpMesh
impl UnwindSafe for WarpMesh
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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