pub enum RayTracingPayloadType {
Numeric(NumericType),
Struct {
members: Vec<RayTracingPayloadMember>,
span: u32,
},
Array {
inner: Box<RayTracingPayloadType>,
size: NonZeroU32,
stride: u32,
},
}Expand description
An enum containing the types allowed in a ray tracing payload, to be stored in the interface so various shaders can be checked that they all have the same types. Roughly equal to naga’s type inner, but without names,
Variants§
Numeric(NumericType)
A single numeric type.
Struct
A struct containing other payload types
Fields
§
members: Vec<RayTracingPayloadMember>The members of the struct and their offset
Array
An array containing other payload types
Fields
§
inner: Box<RayTracingPayloadType>The type the array contains within itself
§
size: NonZeroU32The size of the array, (non-override, non-dynamic).
Implementations§
Trait Implementations§
Source§impl Clone for RayTracingPayloadType
impl Clone for RayTracingPayloadType
Source§fn clone(&self) -> RayTracingPayloadType
fn clone(&self) -> RayTracingPayloadType
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 moreSource§impl Debug for RayTracingPayloadType
impl Debug for RayTracingPayloadType
Source§impl PartialEq for RayTracingPayloadType
impl PartialEq for RayTracingPayloadType
Source§fn eq(&self, other: &RayTracingPayloadType) -> bool
fn eq(&self, other: &RayTracingPayloadType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RayTracingPayloadType
impl StructuralPartialEq for RayTracingPayloadType
Auto Trait Implementations§
impl Freeze for RayTracingPayloadType
impl RefUnwindSafe for RayTracingPayloadType
impl Send for RayTracingPayloadType
impl Sync for RayTracingPayloadType
impl Unpin for RayTracingPayloadType
impl UnsafeUnpin for RayTracingPayloadType
impl UnwindSafe for RayTracingPayloadType
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,
§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.§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
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