[][src]Trait luminance::backend::texture::Texture

pub unsafe trait Texture<D, P>: TextureBase where
    D: Dimensionable,
    P: Pixel
{ pub unsafe fn new_texture(
        &mut self,
        size: D::Size,
        mipmaps: usize,
        sampler: Sampler
    ) -> Result<Self::TextureRepr, TextureError>;
pub unsafe fn mipmaps(texture: &Self::TextureRepr) -> usize;
pub unsafe fn clear_part(
        texture: &mut Self::TextureRepr,
        gen_mipmaps: GenMipmaps,
        offset: D::Offset,
        size: D::Size,
        pixel: P::Encoding
    ) -> Result<(), TextureError>;
pub unsafe fn clear(
        texture: &mut Self::TextureRepr,
        gen_mipmaps: GenMipmaps,
        size: D::Size,
        pixel: P::Encoding
    ) -> Result<(), TextureError>;
pub unsafe fn upload_part(
        texture: &mut Self::TextureRepr,
        gen_mipmaps: GenMipmaps,
        offset: D::Offset,
        size: D::Size,
        texels: &[P::Encoding]
    ) -> Result<(), TextureError>;
pub unsafe fn upload(
        texture: &mut Self::TextureRepr,
        gen_mipmaps: GenMipmaps,
        size: D::Size,
        texels: &[P::Encoding]
    ) -> Result<(), TextureError>;
pub unsafe fn upload_part_raw(
        texture: &mut Self::TextureRepr,
        gen_mipmaps: GenMipmaps,
        offset: D::Offset,
        size: D::Size,
        texels: &[P::RawEncoding]
    ) -> Result<(), TextureError>;
pub unsafe fn upload_raw(
        texture: &mut Self::TextureRepr,
        gen_mipmaps: GenMipmaps,
        size: D::Size,
        texels: &[P::RawEncoding]
    ) -> Result<(), TextureError>;
pub unsafe fn get_raw_texels(
        texture: &Self::TextureRepr,
        size: D::Size
    ) -> Result<Vec<P::RawEncoding>, TextureError>
    where
        P::RawEncoding: Copy + Default
; }

Required methods

pub unsafe fn new_texture(
    &mut self,
    size: D::Size,
    mipmaps: usize,
    sampler: Sampler
) -> Result<Self::TextureRepr, TextureError>
[src]

pub unsafe fn mipmaps(texture: &Self::TextureRepr) -> usize[src]

pub unsafe fn clear_part(
    texture: &mut Self::TextureRepr,
    gen_mipmaps: GenMipmaps,
    offset: D::Offset,
    size: D::Size,
    pixel: P::Encoding
) -> Result<(), TextureError>
[src]

pub unsafe fn clear(
    texture: &mut Self::TextureRepr,
    gen_mipmaps: GenMipmaps,
    size: D::Size,
    pixel: P::Encoding
) -> Result<(), TextureError>
[src]

pub unsafe fn upload_part(
    texture: &mut Self::TextureRepr,
    gen_mipmaps: GenMipmaps,
    offset: D::Offset,
    size: D::Size,
    texels: &[P::Encoding]
) -> Result<(), TextureError>
[src]

pub unsafe fn upload(
    texture: &mut Self::TextureRepr,
    gen_mipmaps: GenMipmaps,
    size: D::Size,
    texels: &[P::Encoding]
) -> Result<(), TextureError>
[src]

pub unsafe fn upload_part_raw(
    texture: &mut Self::TextureRepr,
    gen_mipmaps: GenMipmaps,
    offset: D::Offset,
    size: D::Size,
    texels: &[P::RawEncoding]
) -> Result<(), TextureError>
[src]

pub unsafe fn upload_raw(
    texture: &mut Self::TextureRepr,
    gen_mipmaps: GenMipmaps,
    size: D::Size,
    texels: &[P::RawEncoding]
) -> Result<(), TextureError>
[src]

pub unsafe fn get_raw_texels(
    texture: &Self::TextureRepr,
    size: D::Size
) -> Result<Vec<P::RawEncoding>, TextureError> where
    P::RawEncoding: Copy + Default
[src]

Loading content...

Implementors

Loading content...