pub struct IntersectLane<'a, 'b, D: UserData> { /* private fields */ }Expand description
A single active lane of an intersect callback’s packet, yielded by
IntersectFunctionNArgs::for_each_active_lane. Its index is already known
in-range and active, so the per-lane operations take no index argument.
Implementations§
Source§impl<'a, 'b, D: UserData> IntersectLane<'a, 'b, D>
impl<'a, 'b, D: UserData> IntersectLane<'a, 'b, D>
Sourcepub fn filter_intersection(&mut self, ray: &mut Ray, hit: &mut Hit) -> bool
pub fn filter_intersection(&mut self, ray: &mut Ray, hit: &mut Hit) -> bool
Run a candidate through the filter chain (see
IntersectFunctionNArgs::filter_intersection).
Sourcepub fn commit_hit(&mut self, ray: &Ray, hit: &Hit)
pub fn commit_hit(&mut self, ray: &Ray, hit: &Hit)
Commit a surviving hit to this lane (see
IntersectFunctionNArgs::commit_hit).
Auto Trait Implementations§
impl<'a, 'b, D> !Send for IntersectLane<'a, 'b, D>
impl<'a, 'b, D> !Sync for IntersectLane<'a, 'b, D>
impl<'a, 'b, D> !UnwindSafe for IntersectLane<'a, 'b, D>
impl<'a, 'b, D> Freeze for IntersectLane<'a, 'b, D>
impl<'a, 'b, D> RefUnwindSafe for IntersectLane<'a, 'b, D>where
D: RefUnwindSafe,
impl<'a, 'b, D> Unpin for IntersectLane<'a, 'b, D>
impl<'a, 'b, D> UnsafeUnpin for IntersectLane<'a, 'b, D>
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