pub struct FramebufferInit<'a, F, I, E> { /* private fields */ }
Expand description
Helper to initialize framebuffers in a graphics API agnostic way.
Implementations§
Source§impl<'a, F, I, E> FramebufferInit<'a, F, I, E>
impl<'a, F, I, E> FramebufferInit<'a, F, I, E>
Sourcepub fn new(
filters: impl Iterator<Item = &'a BindingMeta> + ExactSizeIterator,
owned_generator: &'a dyn Fn() -> Result<F, E>,
input_generator: &'a dyn Fn() -> I,
) -> Self
pub fn new( filters: impl Iterator<Item = &'a BindingMeta> + ExactSizeIterator, owned_generator: &'a dyn Fn() -> Result<F, E>, input_generator: &'a dyn Fn() -> I, ) -> Self
Create a new framebuffer initializer with the given closures to create owned framebuffers and image views.
Sourcepub fn init_history(&self) -> Result<(VecDeque<F>, Box<[I]>), E>
pub fn init_history(&self) -> Result<(VecDeque<F>, Box<[I]>), E>
Initialize history framebuffers and views.
Sourcepub fn init_output_framebuffers(&self) -> Result<(Box<[F]>, Box<[I]>), E>
pub fn init_output_framebuffers(&self) -> Result<(Box<[F]>, Box<[I]>), E>
Initialize output framebuffers and views.
Sourcepub const fn uses_final_pass_as_feedback(&self) -> bool
pub const fn uses_final_pass_as_feedback(&self) -> bool
Get if the final pass is used as feedback.
Auto Trait Implementations§
impl<'a, F, I, E> Freeze for FramebufferInit<'a, F, I, E>
impl<'a, F, I, E> !RefUnwindSafe for FramebufferInit<'a, F, I, E>
impl<'a, F, I, E> !Send for FramebufferInit<'a, F, I, E>
impl<'a, F, I, E> !Sync for FramebufferInit<'a, F, I, E>
impl<'a, F, I, E> Unpin for FramebufferInit<'a, F, I, E>
impl<'a, F, I, E> !UnwindSafe for FramebufferInit<'a, F, I, E>
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