Struct glium::texture::TextureAnyLayerMipmap
[−]
[src]
pub struct TextureAnyLayerMipmap<'a> { /* fields omitted */ }Represents a specific layer of a specific mipmap. This is the same as TextureAnyImage, except
for 3D textures, cubemaps and cubemap arrays.
Methods
impl<'a> TextureAnyLayerMipmap<'a>[src]
pub fn get_texture(&self) -> &'a TextureAny[src]
Returns the texture.
pub fn get_level(&self) -> u32[src]
Returns the level of the texture.
pub fn get_layer(&self) -> u32[src]
Returns the layer of the texture.
pub fn get_width(&self) -> u32[src]
Returns the width of this texture slice.
pub fn get_height(&self) -> Option<u32>[src]
Returns the height of this texture slice.
pub fn get_samples(&self) -> Option<u32>[src]
Returns the number of samples of the texture.
pub fn into_image(
&self,
cube_layer: Option<CubeLayer>
) -> Option<TextureAnyImage<'a>>[src]
&self,
cube_layer: Option<CubeLayer>
) -> Option<TextureAnyImage<'a>>
Turns this into an image.
Returns None if cube_layer is None and the texture is a cubemap. Returns None if
cube_layer is Some and the texture is not a cubemap.
Trait Implementations
impl<'a> Copy for TextureAnyLayerMipmap<'a>[src]
impl<'a> Clone for TextureAnyLayerMipmap<'a>[src]
fn clone(&self) -> TextureAnyLayerMipmap<'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