pub struct RendererTextureReset<'context, 'consumer> { /* private fields */ }Expand description
One-use permission to reset Context-owned renderer texture bindings.
Context::prepare_renderer_texture_reset validates that the matching renderer consumer is
idle before any GPU resource is released. The permit then keeps both the Context and consumer
borrowed while the backend destroys its texture map. Call Self::commit only after those GPU
resources are no longer reachable. Dropping the permit without committing leaves every native
binding unchanged.
Implementations§
Source§impl RendererTextureReset<'_, '_>
impl RendererTextureReset<'_, '_>
Auto Trait Implementations§
impl<'context, 'consumer> !RefUnwindSafe for RendererTextureReset<'context, 'consumer>
impl<'context, 'consumer> !Send for RendererTextureReset<'context, 'consumer>
impl<'context, 'consumer> !Sync for RendererTextureReset<'context, 'consumer>
impl<'context, 'consumer> !UnwindSafe for RendererTextureReset<'context, 'consumer>
impl<'context, 'consumer> Freeze for RendererTextureReset<'context, 'consumer>
impl<'context, 'consumer> Unpin for RendererTextureReset<'context, 'consumer>
impl<'context, 'consumer> UnsafeUnpin for RendererTextureReset<'context, 'consumer>
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