Struct BvhNode
#[repr(C)]pub struct BvhNode {
pub bbox_min: [f32; 3],
pub bbox_max: [f32; 3],
pub left_or_first: u32,
pub right_or_count: u32,
pub parent: u32,
pub node_type: u32,
}Expand description
BVH node: 40 bytes, repr(C), naturally aligned.
Fields§
§bbox_min: [f32; 3]§bbox_max: [f32; 3]§left_or_first: u32§right_or_count: u32§parent: u32§node_type: u32Trait Implementations§
impl Copy for BvhNode
impl Pod for BvhNode
impl StructuralPartialEq for BvhNode
Auto Trait Implementations§
impl Freeze for BvhNode
impl RefUnwindSafe for BvhNode
impl Send for BvhNode
impl Sync for BvhNode
impl Unpin for BvhNode
impl UnsafeUnpin for BvhNode
impl UnwindSafe for BvhNode
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§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.§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.