[][src]Enum glium::texture::ClientFormat

pub enum ClientFormat {
    U8,
    U8U8,
    U8U8U8,
    U8U8U8U8,
    I8,
    I8I8,
    I8I8I8,
    I8I8I8I8,
    U16,
    U16U16,
    U16U16U16,
    U16U16U16U16,
    I16,
    I16I16,
    I16I16I16,
    I16I16I16I16,
    U32,
    U32U32,
    U32U32U32,
    U32U32U32U32,
    I32,
    I32I32,
    I32I32I32,
    I32I32I32I32,
    U3U3U2,
    U5U6U5,
    U4U4U4U4,
    U5U5U5U1,
    U10U10U10U2,
    F16,
    F16F16,
    F16F16F16,
    F16F16F16F16,
    F32,
    F32F32,
    F32F32F32,
    F32F32F32F32,
}

List of client-side pixel formats.

These are all the possible formats of input data when uploading to a texture.

Variants

U8
U8U8
U8U8U8
U8U8U8U8
I8
I8I8
I8I8I8
I8I8I8I8
U16
U16U16
U16U16U16
U16U16U16U16
I16
I16I16
I16I16I16
I16I16I16I16
U32
U32U32
U32U32U32
U32U32U32U32
I32
I32I32
I32I32I32
I32I32I32I32
U3U3U2
U5U6U5
U4U4U4U4
U5U5U5U1
U10U10U10U2
F16
F16F16
F16F16F16
F16F16F16F16
F32
F32F32
F32F32F32
F32F32F32F32

Implementations

impl ClientFormat[src]

pub fn get_size(&self) -> usize[src]

Returns the size in bytes of a pixel of this type.

pub fn get_num_components(&self) -> u8[src]

Returns the number of components of this client format.

Trait Implementations

impl Clone for ClientFormat[src]

impl Copy for ClientFormat[src]

impl Debug for ClientFormat[src]

impl Eq for ClientFormat[src]

impl PartialEq<ClientFormat> for ClientFormat[src]

impl StructuralEq for ClientFormat[src]

impl StructuralPartialEq for ClientFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for ClientFormat

impl Send for ClientFormat

impl Sync for ClientFormat

impl Unpin for ClientFormat

impl UnwindSafe for ClientFormat

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> Content for T where
    T: Copy
[src]

type Owned = T

A type that holds a sized version of the content.

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.