Struct rtbvh::Mbvh [−][src]
pub struct Mbvh { /* fields omitted */ }
Implementations
impl Mbvh
[src]
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]
&'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);
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]
&'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);
Trait Implementations
impl<'de> Deserialize<'de> for Mbvh
[src]
impl<'de> Deserialize<'de> for Mbvh
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Mbvh
impl RefUnwindSafe for Mbvh
impl UnwindSafe for Mbvh
impl UnwindSafe for Mbvh
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]