pub struct SkinnedRefit { /* private fields */ }Expand description
One ring slot’s refit bookkeeping: the geometry its BLAS were last built over, whether they hold a tree a refit can update, and how many consecutive refits have run since the last full build.
Implementations§
Source§impl SkinnedRefit
impl SkinnedRefit
Sourcepub fn plan(
&mut self,
shapes: &[SkinnedShape],
storage_changed: bool,
) -> BlasUpdate
pub fn plan( &mut self, shapes: &[SkinnedShape], storage_changed: bool, ) -> BlasUpdate
How this frame’s skinned BLAS should be updated, recording the choice so
the refit run stays bounded and the shapes so the next frame can compare.
storage_changed must be set when the structures or the buffer they trace
were (re)allocated this frame, which leaves no tree to refit. Call once the
frame’s fallible work has passed: recording a build the backend never
encodes would leave the slot claiming a tree a later refit cannot update.
Trait Implementations§
Source§impl Default for SkinnedRefit
impl Default for SkinnedRefit
Source§fn default() -> SkinnedRefit
fn default() -> SkinnedRefit
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SkinnedRefit
impl RefUnwindSafe for SkinnedRefit
impl Send for SkinnedRefit
impl Sync for SkinnedRefit
impl Unpin for SkinnedRefit
impl UnsafeUnpin for SkinnedRefit
impl UnwindSafe for SkinnedRefit
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