pub enum RayQueryFunction {
Initialize {
acceleration_structure: Handle<Expression>,
descriptor: Handle<Expression>,
},
Proceed {
result: Handle<Expression>,
},
GenerateIntersection {
hit_t: Handle<Expression>,
},
ConfirmIntersection,
Terminate,
}
Expand description
An operation that a RayQuery
statement applies to its query
operand.
Variants§
Initialize
Initialize the RayQuery
object.
Fields
acceleration_structure: Handle<Expression>
The acceleration structure within which this query 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.
Proceed
Start or continue the query given by the statement’s query
operand.
After executing this statement, the result
expression is a
Bool
scalar indicating whether there are more intersection
candidates to consider.
Fields
result: Handle<Expression>
GenerateIntersection
Add a candidate generated intersection to be included in the determination of the closest hit for a ray query.
Fields
hit_t: Handle<Expression>
ConfirmIntersection
Confirm a triangle intersection to be included in the determination of the closest hit for a ray query.
Terminate
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for RayQueryFunction
impl<'arbitrary> Arbitrary<'arbitrary> for RayQueryFunction
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
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>
Self
from the entirety of the given
unstructured data. Read moreSource§impl Clone for RayQueryFunction
impl Clone for RayQueryFunction
Source§fn clone(&self) -> RayQueryFunction
fn clone(&self) -> RayQueryFunction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more