[][src]Enum glium::texture::CubeLayer

pub enum CubeLayer {
    PositiveX,
    NegativeX,
    PositiveY,
    NegativeY,
    PositiveZ,
    NegativeZ,
}

Represents a layer of a cubemap.

Variants

PositiveX
NegativeX
PositiveY
NegativeY
PositiveZ
NegativeZ

Implementations

impl CubeLayer[src]

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

In some situations whole cubemaps can be bound at once. If this is the case, each layer of the cubemap has a specific index.

For example, if you bind a whole cubemap array, then the index 8 will correspond to the PositiveY face of the cubemap whose index is 1 in the array.

Trait Implementations

impl Clone for CubeLayer[src]

impl Copy for CubeLayer[src]

impl Debug for CubeLayer[src]

impl Eq for CubeLayer[src]

impl Hash for CubeLayer[src]

impl PartialEq<CubeLayer> for CubeLayer[src]

impl StructuralEq for CubeLayer[src]

impl StructuralPartialEq for CubeLayer[src]

Auto Trait Implementations

impl RefUnwindSafe for CubeLayer

impl Send for CubeLayer

impl Sync for CubeLayer

impl Unpin for CubeLayer

impl UnwindSafe for CubeLayer

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.