pub struct RenderTextureRecycler { /* private fields */ }Expand description
Returns displayed textures to a RenderTargetCache once the UI no longer shows them.
Implementations§
Source§impl RenderTextureRecycler
impl RenderTextureRecycler
Sourcepub fn recycle(&self, image: RenderedTexture)
pub fn recycle(&self, image: RenderedTexture)
Offers image for reuse; kept when it has the current size and fewer than two wait.
Trait Implementations§
Source§impl Clone for RenderTextureRecycler
impl Clone for RenderTextureRecycler
Auto Trait Implementations§
impl Forget for RenderTextureRecycler
impl Freeze for RenderTextureRecycler
impl Move for RenderTextureRecycler
impl RefUnwindSafe for RenderTextureRecycler
impl Send for RenderTextureRecycler
impl Sync for RenderTextureRecycler
impl Unpin for RenderTextureRecycler
impl UnsafeUnpin for RenderTextureRecycler
impl UnwindSafe for RenderTextureRecycler
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