#[repr(C)]pub struct Node {
pub aabb_min: [f32; 3],
pub first_tri: u32,
pub aabb_max: [f32; 3],
pub tri_count: u32,
pub child: [u32; 8],
pub child_count: u32,
pub dummy: [u32; 3],
}Expand description
M-wide (aka ‘shallow’) BVH layout.
More information on the tinybvh repository (MBVH::MBVHNode struct).
Fields§
§aabb_min: [f32; 3]§first_tri: u32§aabb_max: [f32; 3]§tri_count: u32§child: [u32; 8]§child_count: u32§dummy: [u32; 3]Implementations§
Trait Implementations§
Source§impl ExternType for Node
impl ExternType for Node
impl Copy for Node
impl Pod for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.