pub struct SkinnedShape {
pub index_offset: usize,
pub index_count: usize,
pub vertex_extent: u32,
}Expand description
The geometry one skinned BLAS is built over: its slice of the shared skinned
index buffer plus the vertex range the deformed buffer spans. Equal
signatures mean the same triangles addressing the same vertex range with only
the positions moved, which is exactly when a refit is legal; anything else (a
mesh hot-reload, a different mesh becoming visible, a grown deformed buffer)
changes the geometry description and needs a full rebuild. vertex_extent is
carried because both APIs require the vertex count to match the structure
being updated, even though the vertex buffer’s address may move.
Fields§
§index_offset: usizeFirst index of this slot’s range in the shared index buffer.
index_count: usizeIndices in this slot’s range.
vertex_extent: u32Vertices the slot’s range spans.
Trait Implementations§
Source§impl Clone for SkinnedShape
impl Clone for SkinnedShape
Source§fn clone(&self) -> SkinnedShape
fn clone(&self) -> SkinnedShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SkinnedShape
Source§impl Debug for SkinnedShape
impl Debug for SkinnedShape
Source§impl Default for SkinnedShape
impl Default for SkinnedShape
Source§fn default() -> SkinnedShape
fn default() -> SkinnedShape
Returns the “default value” for a type. Read more
impl Eq for SkinnedShape
Source§impl PartialEq for SkinnedShape
impl PartialEq for SkinnedShape
impl StructuralPartialEq for SkinnedShape
Auto Trait Implementations§
impl Freeze for SkinnedShape
impl RefUnwindSafe for SkinnedShape
impl Send for SkinnedShape
impl Sync for SkinnedShape
impl Unpin for SkinnedShape
impl UnsafeUnpin for SkinnedShape
impl UnwindSafe for SkinnedShape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.