pub struct EffectBuilder<P: Pod> { /* private fields */ }Expand description
Builder shared by every effect: pipeline knobs pass through to
WgpuFrameFilterBuilder, the shader and params type stay fixed.
Implementations§
Source§impl<P: Pod> EffectBuilder<P>
impl<P: Pod> EffectBuilder<P>
Sourcepub fn output_size(self, width: u32, height: u32) -> Self
pub fn output_size(self, width: u32, height: u32) -> Self
Output frame size; defaults to the input size. See
WgpuFrameFilterBuilder::output_size.
Sourcepub fn frames_in_flight(self, count: usize) -> Self
pub fn frames_in_flight(self, count: usize) -> Self
GPU/CPU overlap depth (1..=4). See
WgpuFrameFilterBuilder::frames_in_flight.
Sourcepub fn zero_copy_readback(self, enabled: bool) -> Self
pub fn zero_copy_readback(self, enabled: bool) -> Self
Experimental zero-copy readback. See
WgpuFrameFilterBuilder::zero_copy_readback.
Sourcepub fn hw_zero_copy_input(self, enabled: bool) -> Self
pub fn hw_zero_copy_input(self, enabled: bool) -> Self
Experimental dmabuf import of hardware frames. See
WgpuFrameFilterBuilder::hw_zero_copy_input.
pub fn build(self) -> Result<Effect<P>, WgpuFilterError>
Auto Trait Implementations§
impl<P> Freeze for EffectBuilder<P>where
P: Freeze,
impl<P> RefUnwindSafe for EffectBuilder<P>where
P: RefUnwindSafe,
impl<P> Send for EffectBuilder<P>where
P: Send,
impl<P> Sync for EffectBuilder<P>where
P: Sync,
impl<P> Unpin for EffectBuilder<P>where
P: Unpin,
impl<P> UnsafeUnpin for EffectBuilder<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for EffectBuilder<P>where
P: 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