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, 'b, T: Primitive>(
&'a self,
ray: &'b mut Ray,
primitives: &'a [T]
) -> MbvhIterator<'a, 'b, T>ⓘNotable traits for MbvhIterator<'a, 'b, T>
impl<'a, 'b, T: 'a + Primitive> Iterator for MbvhIterator<'a, 'b, T> type Item = (&'a T, &'b mut Ray);
[src]
&'a self,
ray: &'b mut Ray,
primitives: &'a [T]
) -> MbvhIterator<'a, 'b, T>ⓘ
Notable traits for MbvhIterator<'a, 'b, T>
impl<'a, 'b, T: 'a + Primitive> Iterator for MbvhIterator<'a, 'b, T> type Item = (&'a T, &'b mut Ray);
pub fn traverse_iter_packet<'a, 'b, T: Primitive>(
&'a self,
ray: &'b mut RayPacket4,
primitives: &'a [T]
) -> MbvhPacketIterator<'a, 'b, T>ⓘNotable traits for MbvhPacketIterator<'a, 'b, T>
impl<'a, 'b, T: 'a + Primitive> Iterator for MbvhPacketIterator<'a, 'b, T> type Item = (&'a T, &'b mut RayPacket4);
[src]
&'a self,
ray: &'b mut RayPacket4,
primitives: &'a [T]
) -> MbvhPacketIterator<'a, 'b, T>ⓘ
Notable traits for MbvhPacketIterator<'a, 'b, T>
impl<'a, 'b, T: 'a + Primitive> Iterator for MbvhPacketIterator<'a, 'b, T> type Item = (&'a T, &'b mut RayPacket4);
Trait Implementations
impl<'a, 'b, T: 'a + Primitive> IntoPacketIterator<'a, 'b, T> for Mbvh
[src]
impl<'a, 'b, T: 'a + Primitive> IntoPacketIterator<'a, 'b, T> for Mbvh
[src]type RIterator = MbvhPacketIterator<'a, 'b, T>
fn iter(
&'a self,
packet: &'b mut RayPacket4,
primitives: &'a [T]
) -> Self::RIterator
[src]
&'a self,
packet: &'b mut RayPacket4,
primitives: &'a [T]
) -> Self::RIterator
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more