[][src]Enum miniquad::graphics::TextureFormat

#[repr(u8)]pub enum TextureFormat {
    RGB8,
    RGBA8,
    Depth,
    Alpha,
}

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

impl TextureFormat[src]

pub fn size(self, width: u32, height: u32) -> u32[src]

Returns the size in bytes of texture with dimensions.

Trait Implementations

impl Clone for TextureFormat[src]

impl Copy for TextureFormat[src]

impl Debug for TextureFormat[src]

impl Eq for TextureFormat[src]

impl From<TextureFormat> for (GLenum, GLenum, GLenum)[src]

Converts from TextureFormat to (internal_format, format, pixel_type)

impl PartialEq<TextureFormat> for TextureFormat[src]

impl StructuralEq for TextureFormat[src]

impl StructuralPartialEq for TextureFormat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.