Enum 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
fn get_layer_index(&self) -> usize
In some situations whole cubemaps can be binded 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.