#[repr(i32)]pub enum TextureStatus {
OK = 0,
Destroyed = 1,
WantCreate = 2,
WantUpdates = 3,
WantDestroy = 4,
}Expand description
Status of a texture to communicate with Renderer Backend
Variants§
OK = 0
Texture is ready and can be used
Destroyed = 1
Backend destroyed the texture
WantCreate = 2
Requesting backend to create the texture. Set status OK when done.
WantUpdates = 3
Requesting backend to update specific blocks of pixels. Set status OK when done.
WantDestroy = 4
Requesting backend to destroy the texture. Set status to Destroyed when done.
Trait Implementations§
Source§impl Clone for TextureStatus
impl Clone for TextureStatus
Source§fn clone(&self) -> TextureStatus
fn clone(&self) -> TextureStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextureStatus
impl Debug for TextureStatus
Source§impl From<TextureStatus> for ImTextureStatus
impl From<TextureStatus> for ImTextureStatus
Source§fn from(status: TextureStatus) -> Self
fn from(status: TextureStatus) -> Self
Converts to this type from the input type.
Source§impl From<i32> for TextureStatus
impl From<i32> for TextureStatus
Source§fn from(status: ImTextureStatus) -> Self
fn from(status: ImTextureStatus) -> Self
Converts to this type from the input type.
Source§impl Hash for TextureStatus
impl Hash for TextureStatus
Source§impl PartialEq for TextureStatus
impl PartialEq for TextureStatus
impl Copy for TextureStatus
impl Eq for TextureStatus
impl StructuralPartialEq for TextureStatus
Auto Trait Implementations§
impl Freeze for TextureStatus
impl RefUnwindSafe for TextureStatus
impl Send for TextureStatus
impl Sync for TextureStatus
impl Unpin for TextureStatus
impl UnwindSafe for TextureStatus
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