pub struct CwBvhValidationResult {
pub direct_layout: bool,
pub discovered_primitives: HashSet<u32>,
pub discovered_nodes: HashSet<u32>,
pub node_count: usize,
pub child_count: usize,
pub leaf_count: usize,
pub prim_count: usize,
pub max_depth: u32,
pub nodes_at_depth: HashMap<u32, u32>,
pub leaves_at_depth: HashMap<u32, u32>,
}Expand description
Result of CwBvh validation. Contains various bvh stats.
Fields§
§direct_layout: boolThe primitives are already laid out in bvh.primitive_indices order.
discovered_primitives: HashSet<u32>Set of primitives discovered though validation traversal.
discovered_nodes: HashSet<u32>Set of nodes discovered though validation traversal.
node_count: usizeTotal number of nodes discovered though validation traversal.
child_count: usizeTotal number of node children discovered though validation traversal.
leaf_count: usizeTotal number of leaves discovered though validation traversal.
prim_count: usizeTotal number of primitives discovered though validation traversal.
max_depth: u32Maximum hierarchical BVH depth discovered though validation traversal.
nodes_at_depth: HashMap<u32, u32>Quantity of nodes found at each depth though validation traversal.
leaves_at_depth: HashMap<u32, u32>Quantity of leaves found at each depth though validation traversal.
Trait Implementations§
Source§impl Default for CwBvhValidationResult
impl Default for CwBvhValidationResult
Source§fn default() -> CwBvhValidationResult
fn default() -> CwBvhValidationResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CwBvhValidationResult
impl RefUnwindSafe for CwBvhValidationResult
impl Send for CwBvhValidationResult
impl Sync for CwBvhValidationResult
impl Unpin for CwBvhValidationResult
impl UnwindSafe for CwBvhValidationResult
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