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 Forget for TransitionBlender
impl Freeze for TransitionBlenderwhere
PhantomData<*mut u8>: Freeze,
PhantomData<(JsValue,)>: Freeze,
NonZero<u64>: Freeze,
*const RcInner<Cell<u32>> is !null: Freeze,
PhantomData<RcInner<Cell<u32>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<RenderPipeline>: Freeze,
impl Move for TransitionBlender
impl Unpin for TransitionBlender
impl UnsafeUnpin for TransitionBlenderwhere
PhantomData<*mut u8>: UnsafeUnpin,
PhantomData<(JsValue,)>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
*const RcInner<Cell<u32>> is !null: UnsafeUnpin,
PhantomData<RcInner<Cell<u32>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<RenderPipeline>: UnsafeUnpin,
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