pub struct Batch { /* private fields */ }Expand description
BAT_ — Batch / draw call (v0–v1, 14 bytes)
Associates a Region with a material for rendering. Multiple batches may reference the same region with different materials.
Implementations§
Source§impl Batch
impl Batch
pub fn set_unknown(&mut self, value: u32)
Sourcepub fn region_index(&self) -> u16
pub fn region_index(&self) -> u16
Index into REGN array
pub fn set_region_index(&mut self, value: u16)
pub fn set_unknown_2(&mut self, value: u32)
Sourcepub fn material_index(&self) -> u16
pub fn material_index(&self) -> u16
Index into MATM material map array
pub fn set_material_index(&mut self, value: u16)
Sourcepub fn bone_count(&self) -> u16
pub fn bone_count(&self) -> u16
Number of bones affecting this batch
pub fn set_bone_count(&mut self, value: u16)
Trait Implementations§
impl Send for Batch
Auto Trait Implementations§
impl !Sync for Batch
impl Freeze for Batch
impl RefUnwindSafe for Batch
impl Unpin for Batch
impl UnsafeUnpin for Batch
impl UnwindSafe for Batch
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