pub enum RayPipelineFunction {
TraceRay {
acceleration_structure: Handle<Expression>,
descriptor: Handle<Expression>,
payload: Handle<Expression>,
},
}Expand description
Ray tracing pipeline intrinsics
Variants§
TraceRay
Traces a ray through the given acceleration structure
Fields
§
acceleration_structure: Handle<Expression>The acceleration structure within which this ray should search for hits.
The expression must be an AccelerationStructure.
§
descriptor: Handle<Expression>A struct of detailed parameters for the ray query.
This expression should have the struct type given in
SpecialTypes::ray_desc. This is available in the WGSL
front end as the RayDesc type.
§
payload: Handle<Expression>A pointer in the ray_payload or incoming_ray_payload address spaces
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for RayPipelineFunction
impl<'arbitrary> Arbitrary<'arbitrary> for RayPipelineFunction
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 RayPipelineFunction
impl Clone for RayPipelineFunction
Source§fn clone(&self) -> RayPipelineFunction
fn clone(&self) -> RayPipelineFunction
Returns a duplicate 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 RayPipelineFunction
impl Debug for RayPipelineFunction
Source§impl<'de> Deserialize<'de> for RayPipelineFunction
impl<'de> Deserialize<'de> for RayPipelineFunction
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 Serialize for RayPipelineFunction
impl Serialize for RayPipelineFunction
impl Copy for RayPipelineFunction
Auto Trait Implementations§
impl Freeze for RayPipelineFunction
impl RefUnwindSafe for RayPipelineFunction
impl Send for RayPipelineFunction
impl Sync for RayPipelineFunction
impl Unpin for RayPipelineFunction
impl UnwindSafe for RayPipelineFunction
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