Struct nannou::ui::backend::glium::glium::texture::unsigned_texture1d_array::UnsignedTexture1dArrayLayer [−][src]
pub struct UnsignedTexture1dArrayLayer<'t>(_, _);
Represents a single layer of a UnsignedTexture1dArray
.
Can be obtained by calling UnsignedTexture1dArray::layer()
.
Methods
impl<'t> UnsignedTexture1dArrayLayer<'t>
[src]
impl<'t> UnsignedTexture1dArrayLayer<'t>
pub fn width(&self) -> u32
[src]
pub fn width(&self) -> u32
Returns the width of that image.
pub fn get_texture(&self) -> &'t UnsignedTexture1dArray
[src]
pub fn get_texture(&self) -> &'t UnsignedTexture1dArray
Returns the corresponding texture.
pub fn get_layer(&self) -> u32
[src]
pub fn get_layer(&self) -> u32
Returns the layer index.
pub fn get_mipmap_levels(&self) -> u32
[src]
pub fn get_mipmap_levels(&self) -> u32
Returns the number of mipmap levels of the texture.
The minimum value is 1, since there is always a main texture.
pub fn mipmap(
&self,
level: u32
) -> Option<UnsignedTexture1dArrayLayerMipmap<'t>>
[src]
pub fn mipmap(
&self,
level: u32
) -> Option<UnsignedTexture1dArrayLayerMipmap<'t>>
Access a single mipmap level of this layer.
pub fn main_level(&self) -> UnsignedTexture1dArrayLayerMipmap<'t>
[src]
pub fn main_level(&self) -> UnsignedTexture1dArrayLayerMipmap<'t>
Access the main mipmap level of this layer.
Trait Implementations
impl<'t> Clone for UnsignedTexture1dArrayLayer<'t>
[src]
impl<'t> Clone for UnsignedTexture1dArrayLayer<'t>
fn clone(&self) -> UnsignedTexture1dArrayLayer<'t>
[src]
fn clone(&self) -> UnsignedTexture1dArrayLayer<'t>
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<'t> Copy for UnsignedTexture1dArrayLayer<'t>
[src]
impl<'t> Copy for UnsignedTexture1dArrayLayer<'t>
Auto Trait Implementations
impl<'t> !Send for UnsignedTexture1dArrayLayer<'t>
impl<'t> !Send for UnsignedTexture1dArrayLayer<'t>
impl<'t> !Sync for UnsignedTexture1dArrayLayer<'t>
impl<'t> !Sync for UnsignedTexture1dArrayLayer<'t>