pub enum RayTracingIntersectionDescriptor<'a> {
Triangle {
closest_hit: RayTracingStage<'a>,
any_hit: Option<RayTracingStage<'a>>,
},
}Expand description
Describes a group of stages to be called for an intersection in a ray tracing pipeline
For use in RayTracingPipelineDescriptor
Variants§
Triangle
This group of shaders may only be used when a BLAS with triangle geometry is intersected.
Fields
§
closest_hit: RayTracingStage<'a>Stage to call if, after the entire intersection process is complete, a triangle within an instance bound to this descriptor is the closest hit.
§
any_hit: Option<RayTracingStage<'a>>Optional stage to call when a triangle within an instance bound to this descriptor is hit at any point during the intersection process.
Trait Implementations§
Source§impl<'a> Clone for RayTracingIntersectionDescriptor<'a>
impl<'a> Clone for RayTracingIntersectionDescriptor<'a>
Source§fn clone(&self) -> RayTracingIntersectionDescriptor<'a>
fn clone(&self) -> RayTracingIntersectionDescriptor<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for RayTracingIntersectionDescriptor<'a>
impl<'a> !RefUnwindSafe for RayTracingIntersectionDescriptor<'a>
impl<'a> Send for RayTracingIntersectionDescriptor<'a>
impl<'a> Sync for RayTracingIntersectionDescriptor<'a>
impl<'a> Unpin for RayTracingIntersectionDescriptor<'a>
impl<'a> UnsafeUnpin for RayTracingIntersectionDescriptor<'a>
impl<'a> !UnwindSafe for RayTracingIntersectionDescriptor<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more