pub(crate) struct BlitPipeline {
pipeline: RenderPipeline,
pipeline_over: RenderPipeline,
bind_group_layout: BindGroupLayout,
sampler: Sampler,
}Fields§
§pipeline: RenderPipelineBlendState::REPLACE — copies source pixels exactly. Used for
the final dest_rt → view flush at end of slow-path render.
pipeline_over: RenderPipelineBlendState::ALPHA_BLENDING — source-over composite. Used by
the clip dispatch path to layer a masked RT on top of the
in-progress destination.
bind_group_layout: BindGroupLayout§sampler: SamplerImplementations§
Source§impl BlitPipeline
impl BlitPipeline
pub(crate) fn new(app: &Application, output_format: TextureFormat) -> Self
Sourcepub(crate) fn blit(
&self,
app: &Application,
src: &RenderTexture,
target_view: &TextureView,
)
pub(crate) fn blit( &self, app: &Application, src: &RenderTexture, target_view: &TextureView, )
Sample src and write it onto target_view, replacing the
destination pixels. Used for the final dest_rt → view flush.
Sourcepub(crate) fn compose_over(
&self,
app: &Application,
src: &RenderTexture,
target_rt: &RenderTexture,
)
pub(crate) fn compose_over( &self, app: &Application, src: &RenderTexture, target_rt: &RenderTexture, )
Sample src and source-over composite onto target_rt,
preserving the destination’s existing content under transparent
regions of src. Used by the clip dispatcher to layer a masked
RT on top of the in-progress destination.
fn run( &self, app: &Application, src: &RenderTexture, target_view: &TextureView, pipeline: &RenderPipeline, clear: bool, )
Auto Trait Implementations§
impl Freeze for BlitPipeline
impl !RefUnwindSafe for BlitPipeline
impl Send for BlitPipeline
impl Sync for BlitPipeline
impl Unpin for BlitPipeline
impl UnsafeUnpin for BlitPipeline
impl !UnwindSafe for BlitPipeline
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