#[repr(u32)]pub enum CommittedIntersection {
None,
Triangle,
Generated,
}
Expand description
Describes the type of the intersection currently committed in a ray query, returned by
RayQuery::get_committed_intersection_type
.
Variants§
None
No intersection is committed.
Triangle
An intersection with a triangle has been committed.
Generated
A user-generated intersection has been committed.
Trait Implementations§
source§impl Clone for CommittedIntersection
impl Clone for CommittedIntersection
source§fn clone(&self) -> CommittedIntersection
fn clone(&self) -> CommittedIntersection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Hash for CommittedIntersection
impl Hash for CommittedIntersection
source§impl Ord for CommittedIntersection
impl Ord for CommittedIntersection
source§fn cmp(&self, other: &CommittedIntersection) -> Ordering
fn cmp(&self, other: &CommittedIntersection) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CommittedIntersection> for CommittedIntersection
impl PartialEq<CommittedIntersection> for CommittedIntersection
source§fn eq(&self, other: &CommittedIntersection) -> bool
fn eq(&self, other: &CommittedIntersection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CommittedIntersection> for CommittedIntersection
impl PartialOrd<CommittedIntersection> for CommittedIntersection
source§fn partial_cmp(&self, other: &CommittedIntersection) -> Option<Ordering>
fn partial_cmp(&self, other: &CommittedIntersection) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CommittedIntersection
impl Eq for CommittedIntersection
impl StructuralEq for CommittedIntersection
impl StructuralPartialEq for CommittedIntersection
Auto Trait Implementations§
impl RefUnwindSafe for CommittedIntersection
impl Send for CommittedIntersection
impl Sync for CommittedIntersection
impl Unpin for CommittedIntersection
impl UnwindSafe for CommittedIntersection
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