pub struct RayTracingPipelineDescriptor<'a, PLL = Arc<PipelineLayout>, SM = Arc<ShaderModule>, PLC = Arc<PipelineCache>> {
pub label: Label<'a>,
pub layout: Option<PLL>,
pub ray_generation: ProgrammableStageDescriptor<'a, SM>,
pub miss: ProgrammableStageDescriptor<'a, SM>,
pub intersections: Vec<RayTracingIntersectionDescriptor<'a, SM>>,
pub max_recursion_depth: u32,
pub cache: Option<PLC>,
}Expand description
Describes a ray tracing pipeline.
Fields§
§label: Label<'a>§layout: Option<PLL>The layout of bind groups for this pipeline.
ray_generation: ProgrammableStageDescriptor<'a, SM>The ray generation stage descriptor
miss: ProgrammableStageDescriptor<'a, SM>The miss stage descriptor
intersections: Vec<RayTracingIntersectionDescriptor<'a, SM>>All the descriptors for intersection functions
max_recursion_depth: u32The maximum number of nested traceRay calls. The ray generation stage is at depth 0.
cache: Option<PLC>The pipeline cache to use when creating this pipeline.
Trait Implementations§
Source§impl<'a, PLL: Clone, SM: Clone, PLC: Clone> Clone for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL: Clone, SM: Clone, PLC: Clone> Clone for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
Source§fn clone(&self) -> RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
fn clone(&self) -> RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
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<'a, PLL: Debug, SM: Debug, PLC: Debug> Debug for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL: Debug, SM: Debug, PLC: Debug> Debug for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
Source§impl<'de, 'a, PLL, SM, PLC> Deserialize<'de> for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
impl<'de, 'a, PLL, SM, PLC> Deserialize<'de> for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
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<'a> IntoTrace for RayTracingPipelineDescriptor<'a>
Available on (crate features trace or replay) and crate feature trace only.
impl<'a> IntoTrace for RayTracingPipelineDescriptor<'a>
Available on (crate features
trace or replay) and crate feature trace only.type Output = RayTracingPipelineDescriptor<'a, PointerId<PipelineLayout>, PointerId<ShaderModule>, PointerId<PipelineCache>>
fn into_trace(self) -> Self::Output
fn to_trace(&self) -> Self::Output
Source§impl<'a, PLL, SM, PLC> Serialize for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL, SM, PLC> Serialize for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
Auto Trait Implementations§
impl<'a, PLL, SM, PLC> Freeze for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL, SM, PLC> RefUnwindSafe for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL, SM, PLC> Send for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL, SM, PLC> Sync for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL, SM, PLC> Unpin for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL, SM, PLC> UnsafeUnpin for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL, SM, PLC> UnwindSafe for RayTracingPipelineDescriptor<'a, PLL, SM, PLC>
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