pub struct RenderTargetCache { /* private fields */ }Expand description
Keeps the depth texture until the size changes and reuses recycled color textures.
Implementations§
Source§impl RenderTargetCache
impl RenderTargetCache
Sourcepub fn set_background_srgb(&mut self, rgb: [u8; 3])
pub fn set_background_srgb(&mut self, rgb: [u8; 3])
Sets the clear color from sRGB bytes (converted to the target’s linear space).
Sourcepub fn recycler(&self) -> RenderTextureRecycler
pub fn recycler(&self) -> RenderTextureRecycler
A handle that returns displayed textures to this cache.
Sourcepub fn stats(&self) -> RenderTargetStats
pub fn stats(&self) -> RenderTargetStats
Allocation counters.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RenderTargetCache
impl !UnwindSafe for RenderTargetCache
impl Freeze for RenderTargetCache
impl Send for RenderTargetCache
impl Sync for RenderTargetCache
impl Unpin for RenderTargetCache
impl UnsafeUnpin for RenderTargetCache
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