Enum wgpu::naga::RayQueryFunction
source · pub enum RayQueryFunction {
Initialize {
acceleration_structure: Handle<Expression>,
descriptor: Handle<Expression>,
},
Proceed {
result: Handle<Expression>,
},
Terminate,
}
Available on
wgpu_core
or naga
only.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>
Terminate
Trait Implementations§
source§impl Clone for RayQueryFunction
impl Clone for RayQueryFunction
source§fn clone(&self) -> RayQueryFunction
fn clone(&self) -> RayQueryFunction
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 RayQueryFunction
impl Debug for RayQueryFunction
source§impl<'de> Deserialize<'de> for RayQueryFunction
impl<'de> Deserialize<'de> for RayQueryFunction
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RayQueryFunction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<RayQueryFunction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for RayQueryFunction
impl Serialize for RayQueryFunction
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RayQueryFunction
impl RefUnwindSafe for RayQueryFunction
impl Send for RayQueryFunction
impl Sync for RayQueryFunction
impl Unpin for RayQueryFunction
impl UnwindSafe for RayQueryFunction
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