Struct glium::texture::TextureAnyLayer
[−]
[src]
pub struct TextureAnyLayer<'a> { /* fields omitted */ }Represents a specific layer of an array texture and 3D textures.
Methods
impl<'a> TextureAnyLayer<'a>[src]
pub fn get_texture(&self) -> &'a TextureAny[src]
Returns the texture.
pub fn get_samples(&self) -> Option<u32>[src]
Returns the number of samples of the texture.
pub fn get_layer(&self) -> u32[src]
Returns the layer of the texture.
pub fn main_level(&self) -> TextureAnyLayerMipmap<'a>[src]
Returns a structure that represents the main mipmap level of this layer of the texture.
pub fn mipmap(&self, level: u32) -> Option<TextureAnyLayerMipmap<'a>>[src]
Returns a structure that represents a specific mipmap of this layer of the texture.
Returns None if out of range.
Trait Implementations
impl<'a> Copy for TextureAnyLayer<'a>[src]
impl<'a> Clone for TextureAnyLayer<'a>[src]
fn clone(&self) -> TextureAnyLayer<'a>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more