Skip to main content

RendererTextureReset

Struct RendererTextureReset 

Source
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<'_, '_>

Source

pub fn commit(self)

Clear the bindings covered by this already-validated reset transaction.

This operation is infallible because the permit exclusively borrows the Context, keeps the validated consumer alive, and was created only after all of its epochs completed.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.