#[repr(u8)]
pub enum TextureFormat {
RGB8,
RGBA8,
Depth,
Alpha,
}
Expand description
List of all the possible formats of input data when uploading to texture. The list is built by intersection of texture formats supported by 3.3 core profile and webgl1.
Variants
RGB8
RGBA8
Depth
Alpha
Implementations
Trait Implementations
sourceimpl Clone for TextureFormat
impl Clone for TextureFormat
sourcefn clone(&self) -> TextureFormat
fn clone(&self) -> TextureFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TextureFormat
impl Debug for TextureFormat
sourceimpl From<TextureFormat> for (GLenum, GLenum, GLenum)
impl From<TextureFormat> for (GLenum, GLenum, GLenum)
Converts from TextureFormat to (internal_format, format, pixel_type)
sourcefn from(format: TextureFormat) -> Self
fn from(format: TextureFormat) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TextureFormat> for TextureFormat
impl PartialEq<TextureFormat> for TextureFormat
sourcefn eq(&self, other: &TextureFormat) -> bool
fn eq(&self, other: &TextureFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for TextureFormat
impl Eq for TextureFormat
impl StructuralEq for TextureFormat
impl StructuralPartialEq for TextureFormat
Auto Trait Implementations
impl RefUnwindSafe for TextureFormat
impl Send for TextureFormat
impl Sync for TextureFormat
impl Unpin for TextureFormat
impl UnwindSafe for TextureFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more