Struct rtbvh::Mbvh[][src]

pub struct Mbvh { /* fields omitted */ }

Implementations

impl Mbvh[src]

pub fn nodes(&self) -> &[BvhNode][src]

pub fn quad_nodes(&self) -> &[MbvhNode][src]

pub fn indices(&self) -> &[u32][src]

pub fn prim_count(&self) -> usize[src]

pub fn construct_from_raw(nodes: &[BvhNode], prim_indices: &[u32]) -> Self[src]

pub fn construct(bvh: &Bvh) -> Self[src]

pub fn into_raw_indices(self) -> Vec<u32>[src]

pub fn into_raw_nodes(self) -> Vec<MbvhNode>[src]

pub fn into_raw(self) -> (Vec<MbvhNode>, Vec<u32>)[src]

pub fn traverse_iter<'a, T: Primitive>(
    &'a self,
    ray: &'a mut Ray,
    primitives: &'a [T]
) -> MbvhIterator<'a, T>

Notable traits for MbvhIterator<'a, T>

impl<'a, T: Primitive> Iterator for MbvhIterator<'a, T> type Item = (&'a T, &'a mut Ray);
[src]

pub fn traverse_iter_packed<'a, T: Primitive>(
    &'a self,
    ray: &'a mut RayPacket4,
    primitives: &'a [T]
) -> MbvhPacketIterator<'a, T>

Notable traits for MbvhPacketIterator<'a, T>

impl<'a, T: Primitive> Iterator for MbvhPacketIterator<'a, T> type Item = (&'a T, &'a mut RayPacket4);
[src]

Trait Implementations

impl Bounds<i32> for Mbvh[src]

impl Clone for Mbvh[src]

impl Debug for Mbvh[src]

impl Default for Mbvh[src]

impl<'de> Deserialize<'de> for Mbvh[src]

impl From<Bvh> for Mbvh[src]

impl Serialize for Mbvh[src]

Auto Trait Implementations

impl RefUnwindSafe for Mbvh

impl Send for Mbvh

impl Sync for Mbvh

impl Unpin for Mbvh

impl UnwindSafe for Mbvh

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.