pub struct RayTracingStage<'a> {
pub module: &'a ShaderModule,
pub entry_point: Option<&'a str>,
pub compilation_options: PipelineCompilationOptions<'a>,
}Expand description
Describes a stage in a ray tracing pipeline
For use in RayTracingPipelineDescriptor
Fields§
§module: &'a ShaderModuleThe compiled shader module for this stage.
entry_point: Option<&'a str>The name of the entry point in the compiled shader to use.
If Some, there must be a shader entry point with this name in module of the stage required.
Otherwise, expect exactly one entry point in module of the stage required, which will be
selected.
compilation_options: PipelineCompilationOptions<'a>Advanced options for when this pipeline is compiled
This implements Default, and for most users can be set to Default::default()
Trait Implementations§
Source§impl<'a> Clone for RayTracingStage<'a>
impl<'a> Clone for RayTracingStage<'a>
Source§fn clone(&self) -> RayTracingStage<'a>
fn clone(&self) -> RayTracingStage<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for RayTracingStage<'a>
impl<'a> !RefUnwindSafe for RayTracingStage<'a>
impl<'a> Send for RayTracingStage<'a>
impl<'a> Sync for RayTracingStage<'a>
impl<'a> Unpin for RayTracingStage<'a>
impl<'a> UnsafeUnpin for RayTracingStage<'a>
impl<'a> !UnwindSafe for RayTracingStage<'a>
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