Skip to main content

DeformSlot

Type Alias DeformSlot 

Source
pub type DeformSlot<T> = Option<Box<T>>;
Expand description

One part’s entry in a per-part deform work area (RawVertexDeform, PartDeformFrame): nothing until the part first carries a deform, then a box that stays allocated and is cleared every frame. Most parts never deform, so they cost a pointer rather than the whole entry.

Aliased Type§

pub enum DeformSlot<T> {
    None,
    Some(Box<T>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Box<T>)

Some value of type T.