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: u32,
    // some fields omitted
}

Texture.

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

Fields

repr: C::ATexture size: D::Size mipmaps: u32

Methods

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

fn new(size: D::Size, mipmaps: u32, sampler: &Sampler) -> Self

fn from_raw(texture: C::ATexture, size: D::Size, mipmaps: u32) -> Self

fn clear_part(&self, gen_mipmaps: bool, offset: D::Offset, size: D::Size, pixel: P::Encoding) where D::Offset: Copy, D::Size: Copy, P::Encoding: Copy

fn clear(&self, gen_mipmaps: bool, pixel: P::Encoding) where D::Offset: Copy, D::Size: Copy, P::Encoding: Copy

fn upload_part(&self, gen_mipmaps: bool, offset: D::Offset, size: D::Size, texels: &Vec<P::Encoding>) where D::Offset: Copy, D::Size: Copy

fn upload(&self, gen_mipmaps: bool, texels: &Vec<P::Encoding>) where D::Offset: Copy, D::Size: Copy

Trait Implementations

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]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

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]

fn drop(&mut self)

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