pub struct UploadTexture { /* private fields */ }Expand description
One source-upload texture retained by the renderer’s descriptor-keyed pool.
Implementations§
Source§impl UploadTexture
impl UploadTexture
Sourcepub fn retained_bytes(&self) -> u64
pub fn retained_bytes(&self) -> u64
Returns the physical texture storage retained by this lease.
Trait Implementations§
Source§impl Debug for UploadTexture
impl Debug for UploadTexture
Source§impl Drop for UploadTexture
impl Drop for UploadTexture
Source§impl<'a> From<&'a UploadTexture> for SourceView<'a>
impl<'a> From<&'a UploadTexture> for SourceView<'a>
Source§fn from(texture: &'a UploadTexture) -> Self
fn from(texture: &'a UploadTexture) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for UploadTexture
impl !UnwindSafe for UploadTexture
impl Forget for UploadTexture
impl Freeze for UploadTexturewhere
*const ArcInner<UploadTexturePool> is !null: Freeze,
PhantomData<ArcInner<UploadTexturePool>>: Freeze,
*const ArcInner<CoreTexture> is !null: Freeze,
PhantomData<ArcInner<CoreTexture>>: Freeze,
&'static str: Freeze,
InternalBitFlags: Freeze,
&'static [TextureFormat]: Freeze,
*const ArcInner<CoreTextureView> is !null: Freeze,
PhantomData<ArcInner<CoreTextureView>>: Freeze,
impl Move for UploadTexture
impl Send for UploadTexture
impl Sync for UploadTexture
impl Unpin for UploadTexture
impl UnsafeUnpin for UploadTexturewhere
*const ArcInner<UploadTexturePool> is !null: UnsafeUnpin,
PhantomData<ArcInner<UploadTexturePool>>: UnsafeUnpin,
*const ArcInner<CoreTexture> is !null: UnsafeUnpin,
PhantomData<ArcInner<CoreTexture>>: UnsafeUnpin,
&'static str: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
&'static [TextureFormat]: UnsafeUnpin,
*const ArcInner<CoreTextureView> is !null: UnsafeUnpin,
PhantomData<ArcInner<CoreTextureView>>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more