pub struct BvhStats {
pub node_count: usize,
pub leaf_count: usize,
pub internal_count: usize,
pub max_depth: usize,
pub total_primitives: usize,
pub avg_primitives_per_leaf: f32,
}Expand description
Runtime statistics about a BVH tree.
Fields§
§node_count: usizeTotal number of nodes (internal + leaf).
leaf_count: usizeNumber of leaf nodes.
internal_count: usizeNumber of internal nodes.
max_depth: usizeMaximum tree depth.
total_primitives: usizeTotal number of primitives stored across all leaves.
avg_primitives_per_leaf: f32Average primitives per leaf.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BvhStats
impl RefUnwindSafe for BvhStats
impl Send for BvhStats
impl Sync for BvhStats
impl Unpin for BvhStats
impl UnsafeUnpin for BvhStats
impl UnwindSafe for BvhStats
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more