[][src]Enum glium::texture::Dimensions

pub enum Dimensions {
    Texture1d {
        width: u32,
    },
    Texture1dArray {
        width: u32,
        array_size: u32,
    },
    Texture2d {
        width: u32,
        height: u32,
    },
    Texture2dArray {
        width: u32,
        height: u32,
        array_size: u32,
    },
    Texture2dMultisample {
        width: u32,
        height: u32,
        samples: u32,
    },
    Texture2dMultisampleArray {
        width: u32,
        height: u32,
        array_size: u32,
        samples: u32,
    },
    Texture3d {
        width: u32,
        height: u32,
        depth: u32,
    },
    Cubemap {
        dimension: u32,
    },
    CubemapArray {
        dimension: u32,
        array_size: u32,
    },
}

Type of a texture.

Variants

Texture1d

Fields of Texture1d

width: u32
Texture1dArray

Fields of Texture1dArray

width: u32array_size: u32
Texture2d

Fields of Texture2d

width: u32height: u32
Texture2dArray

Fields of Texture2dArray

width: u32height: u32array_size: u32
Texture2dMultisample

Fields of Texture2dMultisample

width: u32height: u32samples: u32
Texture2dMultisampleArray

Fields of Texture2dMultisampleArray

width: u32height: u32array_size: u32samples: u32
Texture3d

Fields of Texture3d

width: u32height: u32depth: u32
Cubemap

Fields of Cubemap

dimension: u32
CubemapArray

Fields of CubemapArray

dimension: u32array_size: u32

Trait Implementations

impl Clone for Dimensions[src]

impl Copy for Dimensions[src]

impl Debug for Dimensions[src]

impl Eq for Dimensions[src]

impl PartialEq<Dimensions> for Dimensions[src]

impl StructuralEq for Dimensions[src]

impl StructuralPartialEq for Dimensions[src]

Auto Trait Implementations

impl RefUnwindSafe for Dimensions

impl Send for Dimensions

impl Sync for Dimensions

impl Unpin for Dimensions

impl UnwindSafe for Dimensions

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.