pub struct CompAuxViews<'a> {
pub blur1: &'a TextureView,
pub blur2: &'a TextureView,
pub blur3: &'a TextureView,
pub noise_lq: &'a TextureView,
pub noise_mq: &'a TextureView,
pub noise_hq: &'a TextureView,
pub noisevol_lq: &'a TextureView,
pub noisevol_hq: &'a TextureView,
pub prev_main: &'a TextureView,
}Expand description
Texture views the comp pass binds beyond the main warp output and blur pyramid. Bundled into a struct so the pipeline constructor + the resize rebind path don’t take a 10-argument list.
All views are GPU-resident and re-bindable; lifetimes match the GpuContext they came from. The noise views never change after init — only the dynamic main + blur views are recreated on resize.
Fields§
§blur1: &'a TextureView§blur2: &'a TextureView§blur3: &'a TextureView§noise_lq: &'a TextureView§noise_mq: &'a TextureView§noise_hq: &'a TextureView§noisevol_lq: &'a TextureView§noisevol_hq: &'a TextureView§prev_main: &'a TextureViewPrevious frame’s warp output. The comp pass samples this for the
echo effect (echo_zoom/echo_alpha/echo_orient). The renderer
keeps prev_texture from frame N-1 alive long enough that this
binding stays valid for frame N’s comp pass — see the re-ordered
render path in MilkRenderer::render.
Auto Trait Implementations§
impl<'a> Freeze for CompAuxViews<'a>
impl<'a> !RefUnwindSafe for CompAuxViews<'a>
impl<'a> Send for CompAuxViews<'a>
impl<'a> Sync for CompAuxViews<'a>
impl<'a> Unpin for CompAuxViews<'a>
impl<'a> !UnwindSafe for CompAuxViews<'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> 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