Enum nannou::ui::backend::glium::glium::texture::CubeLayer [−][src]
pub enum CubeLayer { PositiveX, NegativeX, PositiveY, NegativeY, PositiveZ, NegativeZ, }
Represents a layer of a cubemap.
Variants
PositiveX
NegativeX
PositiveY
NegativeY
PositiveZ
NegativeZ
Methods
impl CubeLayer
[src]
impl CubeLayer
pub fn get_layer_index(&self) -> usize
[src]
pub fn get_layer_index(&self) -> usize
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 Hash for CubeLayer
[src]
impl Hash for CubeLayer
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for CubeLayer
[src]
impl Clone for CubeLayer
fn clone(&self) -> CubeLayer
[src]
fn clone(&self) -> CubeLayer
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for CubeLayer
[src]
impl Debug for CubeLayer
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for CubeLayer
[src]
impl Copy for CubeLayer
impl Eq for CubeLayer
[src]
impl Eq for CubeLayer
impl PartialEq<CubeLayer> for CubeLayer
[src]
impl PartialEq<CubeLayer> for CubeLayer