#[repr(C)]pub struct RayHit {
pub primitive_id: u32,
pub geometry_id: u32,
pub instance_id: u32,
pub t: f32,
}Expand description
A struct representing a hit record in ray tracing.
A Hit record contains the IDs of the primitive, geometry and instance that
were hit, as well as the t (distance) value at which the hit occurred.
Fields§
§primitive_id: u32§geometry_id: u32§instance_id: u32§t: f32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RayHit
impl RefUnwindSafe for RayHit
impl Send for RayHit
impl Sync for RayHit
impl Unpin for RayHit
impl UnwindSafe for RayHit
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