pub struct VertRange {
pub offset: u32,
pub count: u32,
}Expand description
A reference into a per-tile vert_data buffer: offset (in i32 elements) and count. count is 4 for an axis-aligned rect (2 corners × 2 coords), 8 for a non-axis-aligned quad (4 corners × 2 coords), or 16 for a transform fingerprint emitted when a perspective-projected rect crosses the camera plane (4 corners × homogeneous (x, y, z, w) coords).
Fields§
§offset: u32§count: u32Implementations§
Trait Implementations§
impl Copy for VertRange
impl StructuralPartialEq for VertRange
Auto Trait Implementations§
impl Freeze for VertRange
impl RefUnwindSafe for VertRange
impl Send for VertRange
impl Sync for VertRange
impl Unpin for VertRange
impl UnsafeUnpin for VertRange
impl UnwindSafe for VertRange
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