pub struct SpecializedPipeline<P, D> {
pub pipeline: P,
pub descriptor: D,
}Expand description
A compiled pipeline together with the descriptor it came from.
This is what a cache hands out: the pipeline to bind, and the descriptor it was built from, which the renderer reads to discover the bind-group layouts and vertex streams the pipeline expects. A compiled pipeline does not expose those, so the blueprint is kept beside it rather than re-derived.
Fields§
§pipeline: PThe compiled pipeline.
descriptor: DThe descriptor it was compiled from.
Implementations§
Source§impl<P, D: PipelineDescriptor<P>> SpecializedPipeline<P, D>
impl<P, D: PipelineDescriptor<P>> SpecializedPipeline<P, D>
Sourcepub fn descriptor(&self) -> &D
pub fn descriptor(&self) -> &D
The descriptor this pipeline was compiled from.
Trait Implementations§
Auto Trait Implementations§
impl<P, D> Forget for SpecializedPipeline<P, D>
impl<P, D> Freeze for SpecializedPipeline<P, D>
impl<P, D> RefUnwindSafe for SpecializedPipeline<P, D>where
P: RefUnwindSafe,
D: RefUnwindSafe,
impl<P, D> Send for SpecializedPipeline<P, D>
impl<P, D> Sync for SpecializedPipeline<P, D>
impl<P, D> Unpin for SpecializedPipeline<P, D>
impl<P, D> UnsafeUnpin for SpecializedPipeline<P, D>where
P: UnsafeUnpin,
D: UnsafeUnpin,
impl<P, D> UnwindSafe for SpecializedPipeline<P, D>where
P: UnwindSafe,
D: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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