[][src]Struct glium::texture::stencil_texture2d_multisample_array::StencilTexture2dMultisampleArrayLayer

pub struct StencilTexture2dMultisampleArrayLayer<'t>(_, _);

Represents a single layer of a StencilTexture2dMultisampleArray.

Can be obtained by calling StencilTexture2dMultisampleArray::layer().

Implementations

impl<'t> StencilTexture2dMultisampleArrayLayer<'t>[src]

pub fn width(&self) -> u32[src]

Returns the width of that image.

pub fn height(&self) -> u32[src]

Returns the height of that image.

pub fn samples(&self) -> u32[src]

Returns the number of samples of that image.

pub fn dimensions(&self) -> (u32, u32)[src]

Returns the width and height of that image.

pub fn get_texture(&self) -> &'t StencilTexture2dMultisampleArray[src]

Returns the corresponding texture.

pub fn get_layer(&self) -> u32[src]

Returns the layer index.

pub fn get_mipmap_levels(&self) -> u32[src]

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<StencilTexture2dMultisampleArrayLayerMipmap<'t>>
[src]

Access a single mipmap level of this layer.

pub fn main_level(&self) -> StencilTexture2dMultisampleArrayLayerMipmap<'t>[src]

Access the main mipmap level of this layer.

Trait Implementations

impl<'t> Clone for StencilTexture2dMultisampleArrayLayer<'t>[src]

impl<'t> Copy for StencilTexture2dMultisampleArrayLayer<'t>[src]

Auto Trait Implementations

impl<'t> !RefUnwindSafe for StencilTexture2dMultisampleArrayLayer<'t>

impl<'t> !Send for StencilTexture2dMultisampleArrayLayer<'t>

impl<'t> !Sync for StencilTexture2dMultisampleArrayLayer<'t>

impl<'t> Unpin for StencilTexture2dMultisampleArrayLayer<'t>

impl<'t> !UnwindSafe for StencilTexture2dMultisampleArrayLayer<'t>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T where
    T: Copy
[src]

type Owned = T

A type that holds a sized version of the content.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.