#[repr(C, align(4))]pub struct ModelVertex {
pub position: Vec3I16,
pub joint1: u8,
pub blend: u8,
}Expand description
Decoded textured model vertex. Word alignment lets the GTE projection path load XY in one MIPS load. These are decoded records, not a view into the cooked byte format.
Fields§
§position: Vec3I16Model-local position. The cooked importer may use a much denser
scale here than world/grid units; use Model::local_to_world_q12
when placing the model directly into world space.
joint1: u8Secondary blend joint, or NO_JOINT8 when this vertex is
single-bone.
blend: u8Weight of joint1 for view-space blending (0..=255). Zero
signals the renderer to stay on the single-bone GTE fast path.
Implementations§
Trait Implementations§
Source§impl Clone for ModelVertex
impl Clone for ModelVertex
Source§fn clone(&self) -> ModelVertex
fn clone(&self) -> ModelVertex
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelVertex
impl Debug for ModelVertex
Source§impl PartialEq for ModelVertex
impl PartialEq for ModelVertex
impl Copy for ModelVertex
impl Eq for ModelVertex
impl StructuralPartialEq for ModelVertex
Auto Trait Implementations§
impl Freeze for ModelVertex
impl RefUnwindSafe for ModelVertex
impl Send for ModelVertex
impl Sync for ModelVertex
impl Unpin for ModelVertex
impl UnsafeUnpin for ModelVertex
impl UnwindSafe for ModelVertex
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)