pub struct CompositeSection { /* private fields */ }Expand description
CMS_ — Composite material section (v0, 24 bytes)
A single section within a composite material, referencing another material index with an animated blend multiplier.
Implementations§
Source§impl CompositeSection
impl CompositeSection
Sourcepub fn material_index(&self) -> u32
pub fn material_index(&self) -> u32
Index into MATM array
pub fn set_material_index(&mut self, value: u32)
Sourcepub fn map_multiplier(&self) -> Ref<'_, AnimRefF32>
pub fn map_multiplier(&self) -> Ref<'_, AnimRefF32>
Animated blend weight Borrows the field in place — no copy, no allocation.
pub fn map_multiplier_mut(&mut self) -> RefMut<'_, AnimRefF32>
Trait Implementations§
Source§impl Debug for CompositeSection
impl Debug for CompositeSection
Source§impl Default for CompositeSection
impl Default for CompositeSection
Source§impl Drop for CompositeSection
impl Drop for CompositeSection
impl Send for CompositeSection
Auto Trait Implementations§
impl !Sync for CompositeSection
impl Freeze for CompositeSection
impl RefUnwindSafe for CompositeSection
impl Unpin for CompositeSection
impl UnsafeUnpin for CompositeSection
impl UnwindSafe for CompositeSection
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