pub enum RayQueryIntersection {
None = 0,
Triangle = 1,
Generated = 2,
Aabb = 3,
}
Expand description
Type of a ray query intersection. Matching vulkan constants can be found in https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/KHR/SPV_KHR_ray_query.asciidoc but the actual values are different for candidate intersections.
Variants§
None = 0
No intersection found.
Matches RayQueryCommittedIntersectionNoneKHR
.
Triangle = 1
Intersecting with triangles.
Matches RayQueryCommittedIntersectionTriangleKHR
and RayQueryCandidateIntersectionTriangleKHR
.
Generated = 2
Intersecting with generated primitives.
Matches RayQueryCommittedIntersectionGeneratedKHR
.
Aabb = 3
Intersecting with Axis Aligned Bounding Boxes.
Matches RayQueryCandidateIntersectionAABBKHR
.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for RayQueryIntersection
impl<'arbitrary> Arbitrary<'arbitrary> for RayQueryIntersection
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for RayQueryIntersection
impl Clone for RayQueryIntersection
source§fn clone(&self) -> RayQueryIntersection
fn clone(&self) -> RayQueryIntersection
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 Debug for RayQueryIntersection
impl Debug for RayQueryIntersection
source§impl Default for RayQueryIntersection
impl Default for RayQueryIntersection
source§fn default() -> RayQueryIntersection
fn default() -> RayQueryIntersection
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RayQueryIntersection
impl<'de> Deserialize<'de> for RayQueryIntersection
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for RayQueryIntersection
impl Hash for RayQueryIntersection
source§impl Ord for RayQueryIntersection
impl Ord for RayQueryIntersection
source§fn cmp(&self, other: &RayQueryIntersection) -> Ordering
fn cmp(&self, other: &RayQueryIntersection) -> 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 RayQueryIntersection
impl PartialEq for RayQueryIntersection
source§impl PartialOrd for RayQueryIntersection
impl PartialOrd for RayQueryIntersection
source§impl Serialize for RayQueryIntersection
impl Serialize for RayQueryIntersection
impl Copy for RayQueryIntersection
impl Eq for RayQueryIntersection
impl StructuralPartialEq for RayQueryIntersection
Auto Trait Implementations§
impl Freeze for RayQueryIntersection
impl RefUnwindSafe for RayQueryIntersection
impl Send for RayQueryIntersection
impl Sync for RayQueryIntersection
impl Unpin for RayQueryIntersection
impl UnwindSafe for RayQueryIntersection
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.