Struct luminance::texture::Texture [] [src]

pub struct Texture<C, L, D, P> where C: HasTexture, L: Layerable, D: Dimensionable, P: Pixel {
    pub repr: C::ATexture,
    pub size: D::Size,
    pub mipmaps: usize,
    // some fields omitted
}

Texture.

L refers to the layering type; D refers to the dimension; P is the pixel format for the texels.

Fields

Methods

impl<C, L, D, P> Texture<C, L, D, P> where C: HasTexture, L: Layerable, D: Dimensionable, D::Size: Copy, P: Pixel
[src]

Trait Implementations

impl<'a, C, L, D, P> Uniformable<C> for &'a Texture<C, L, D, P> where C: HasUniform, L: Layerable, D: Dimensionable, P: Pixel
[src]

Update the uniform with a new value.

Retrieve the Type of the uniform.

Retrieve the Dim of the uniform.

impl<C: Debug, L: Debug, D: Debug, P: Debug> Debug for Texture<C, L, D, P> where C: HasTexture, L: Layerable, D: Dimensionable, P: Pixel, C::ATexture: Debug, D::Size: Debug
[src]

Formats the value using the given formatter.

impl<C, L, D, P> Drop for Texture<C, L, D, P> where C: HasTexture, L: Layerable, D: Dimensionable, P: Pixel
[src]

A method called when the value goes out of scope. Read more