Enum miniquad::graphics::TextureFormat
source · #[repr(u8)]pub enum TextureFormat {
RGB8 = 0,
RGBA8 = 1,
RGBA16F = 2,
Depth = 3,
Depth32 = 4,
Alpha = 5,
}
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§
Implementations§
Trait Implementations§
source§impl Clone for TextureFormat
impl Clone for TextureFormat
source§fn clone(&self) -> TextureFormat
fn clone(&self) -> TextureFormat
Returns a copy 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 (GLenum, GLenum, GLenum)
impl From<TextureFormat> for (GLenum, GLenum, GLenum)
Converts from TextureFormat to (internal_format, format, pixel_type)
source§fn from(format: TextureFormat) -> Self
fn from(format: TextureFormat) -> 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
source§fn 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 ==
.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