pub struct TransitionBlender { /* private fields */ }Expand description
The six transition pipelines and the bilinear / clamp sampler (m_presetSampler).
Implementations§
Source§impl TransitionBlender
impl TransitionBlender
Sourcepub fn new(device: &Device, output_format: TextureFormat) -> Self
pub fn new(device: &Device, output_format: TextureFormat) -> Self
output_format is the format of the targets passed to TransitionBlender::draw.
Sourcepub fn draw(
&self,
encoder: &mut CommandEncoder,
old: &TextureView,
new: &TextureView,
target: &TextureView,
size: (u32, u32),
p: &TransitionParams,
)
pub fn draw( &self, encoder: &mut CommandEncoder, old: &TextureView, new: &TextureView, target: &TextureView, size: (u32, u32), p: &TransitionParams, )
Blend old and new (both width x height internal images, top-down rows) into target
(a view of a width x height texture of the format given to TransitionBlender::new).
Auto Trait Implementations§
impl !RefUnwindSafe for TransitionBlender
impl !Send for TransitionBlender
impl !Sync for TransitionBlender
impl !UnwindSafe for TransitionBlender
impl Freeze for TransitionBlender
impl Unpin for TransitionBlender
impl UnsafeUnpin for TransitionBlender
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