pub(crate) struct BlendPipelineMap {
inner: HashMap<BlendMode, RenderPipeline>,
}Expand description
Map from a BlendMode to its pre-built RenderPipeline.
Fields§
§inner: HashMap<BlendMode, RenderPipeline>Implementations§
Source§impl BlendPipelineMap
impl BlendPipelineMap
Sourcepub(crate) fn new<F>(build: F) -> Selfwhere
F: FnMut(BlendState) -> RenderPipeline,
pub(crate) fn new<F>(build: F) -> Selfwhere
F: FnMut(BlendState) -> RenderPipeline,
Build one pipeline per native BlendMode by invoking build
with that mode’s [wgpu::BlendState].
Sourcepub(crate) fn get(&self, mode: BlendMode) -> &RenderPipeline
pub(crate) fn get(&self, mode: BlendMode) -> &RenderPipeline
Look up the pipeline for mode. Advanced modes silently fall
back to Normal — by design, since render_stage’s
auto-dispatch path renders advanced-blend subtrees into a
foreground RT with Normal blending, then composites via
apply_advanced_blend.
Auto Trait Implementations§
impl Freeze for BlendPipelineMap
impl !RefUnwindSafe for BlendPipelineMap
impl Send for BlendPipelineMap
impl Sync for BlendPipelineMap
impl Unpin for BlendPipelineMap
impl UnsafeUnpin for BlendPipelineMap
impl !UnwindSafe for BlendPipelineMap
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<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