#[repr(u32)]pub enum CommittedIntersection {
None = 0,
Triangle = 1,
Generated = 2,
}
Expand description
Describes the type of the intersection currently committed in a ray query, returned by
RayQuery::get_committed_intersection_type
.
Variants§
None = 0
No intersection is committed.
Triangle = 1
An intersection with a triangle has been committed.
Generated = 2
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 for CommittedIntersection
impl PartialEq 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 for CommittedIntersection
impl PartialOrd 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 StructuralPartialEq for CommittedIntersection
Auto Trait Implementations§
impl Freeze for CommittedIntersection
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