pub struct Weights {
pub groups: Vec<WeightGroup>,
pub vertex_buffer_index: u16,
pub weight_lods: Vec<WeightLod>,
pub unk4: u32,
pub unks5: [u32; 4],
}Expand description
Information used for precomputing skinning matrices based on a mesh’s level of detail (LOD) and RenderPassType.
Fields§
§groups: Vec<WeightGroup>§vertex_buffer_index: u16The descriptor in vertex_buffers containing the weight data. This is typically the last element.
weight_lods: Vec<WeightLod>Selected based on the LOD of the Mesh.
unk4: u32§unks5: [u32; 4]Trait Implementations§
source§impl BinRead for Weights
impl BinRead for Weights
source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_> ) -> BinResult<Self>
source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moresource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moresource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moresource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moresource§fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming little-endian byte order, using
the given arguments. Read moresource§impl PartialEq for Weights
impl PartialEq for Weights
source§impl Xc3Write for Weights
impl Xc3Write for Weights
§type Offsets<'offsets> = WeightsOffsets<'offsets>
type Offsets<'offsets> = WeightsOffsets<'offsets>
The type storing offset data to be used in Xc3WriteOffsets.
source§fn xc3_write<W: Write + Seek>(
&self,
writer: &mut W,
data_ptr: &mut u64
) -> Xc3Result<Self::Offsets<'_>>
fn xc3_write<W: Write + Seek>( &self, writer: &mut W, data_ptr: &mut u64 ) -> Xc3Result<Self::Offsets<'_>>
Write all fields and placeholder offsets
and set
data_ptr to the position after writing.
This should almost always be derived for non primitive types.source§fn should_write(&self) -> Option<bool>
fn should_write(&self) -> Option<bool>
Return
true if this type has no data and should not be written.impl StructuralPartialEq for Weights
Auto Trait Implementations§
impl RefUnwindSafe for Weights
impl Send for Weights
impl Sync for Weights
impl Unpin for Weights
impl UnwindSafe for Weights
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