#[repr(i32)]pub enum TextureFormat {
RGBA32 = 0,
Alpha8 = 1,
}Expand description
Texture format supported by Dear ImGui
Variants§
RGBA32 = 0
4 components per pixel, each is unsigned 8-bit. Total size = TexWidth * TexHeight * 4
Alpha8 = 1
1 component per pixel, each is unsigned 8-bit. Total size = TexWidth * TexHeight
Trait Implementations§
Source§impl Clone for TextureFormat
impl Clone for TextureFormat
Source§fn clone(&self) -> TextureFormat
fn clone(&self) -> TextureFormat
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 TextureFormat
impl Debug for TextureFormat
Source§impl From<TextureFormat> for ImTextureFormat
impl From<TextureFormat> for ImTextureFormat
Source§fn from(format: TextureFormat) -> Self
fn from(format: TextureFormat) -> Self
Converts to this type from the input type.
Source§impl From<i32> for TextureFormat
impl From<i32> for TextureFormat
Source§fn from(format: ImTextureFormat) -> Self
fn from(format: ImTextureFormat) -> Self
Converts to this type from the input type.
Source§impl Hash for TextureFormat
impl Hash for TextureFormat
Source§impl PartialEq for TextureFormat
impl PartialEq for TextureFormat
impl Copy for TextureFormat
impl Eq for TextureFormat
impl StructuralPartialEq for TextureFormat
Auto Trait Implementations§
impl Freeze for TextureFormat
impl RefUnwindSafe for TextureFormat
impl Send for TextureFormat
impl Sync for TextureFormat
impl Unpin for TextureFormat
impl UnwindSafe for TextureFormat
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