pub struct ReportHit<'a> {
pub t: f32,
pub hit_kind: u32,
pub attributes: &'a mut [u32],
}Expand description
ReportHit: an intersection program reports a hit at t of kind hit_kind, with the words of its attributes.
Fields§
§t: f32The distance along the ray of the hit.
hit_kind: u32The hit kind the intersection program reports.
attributes: &'a mut [u32]The words of the hit attributes structure.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for ReportHit<'a>
impl<'a> Freeze for ReportHit<'a>
impl<'a> RefUnwindSafe for ReportHit<'a>
impl<'a> Send for ReportHit<'a>
impl<'a> Sync for ReportHit<'a>
impl<'a> Unpin for ReportHit<'a>
impl<'a> UnsafeUnpin for ReportHit<'a>
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