[−][src]Trait luminance::backend::texture::Texture
Required methods
unsafe fn new_texture(
&mut self,
size: D::Size,
mipmaps: usize,
sampler: Sampler
) -> Result<Self::TextureRepr, TextureError>
&mut self,
size: D::Size,
mipmaps: usize,
sampler: Sampler
) -> Result<Self::TextureRepr, TextureError>
unsafe fn mipmaps(texture: &Self::TextureRepr) -> usize
unsafe fn clear_part(
texture: &mut Self::TextureRepr,
gen_mipmaps: GenMipmaps,
offset: D::Offset,
size: D::Size,
pixel: P::Encoding
) -> Result<(), TextureError>
texture: &mut Self::TextureRepr,
gen_mipmaps: GenMipmaps,
offset: D::Offset,
size: D::Size,
pixel: P::Encoding
) -> Result<(), TextureError>
unsafe fn clear(
texture: &mut Self::TextureRepr,
gen_mipmaps: GenMipmaps,
size: D::Size,
pixel: P::Encoding
) -> Result<(), TextureError>
texture: &mut Self::TextureRepr,
gen_mipmaps: GenMipmaps,
size: D::Size,
pixel: P::Encoding
) -> Result<(), TextureError>
unsafe fn upload_part(
texture: &mut Self::TextureRepr,
gen_mipmaps: GenMipmaps,
offset: D::Offset,
size: D::Size,
texels: &[P::Encoding]
) -> Result<(), TextureError>
texture: &mut Self::TextureRepr,
gen_mipmaps: GenMipmaps,
offset: D::Offset,
size: D::Size,
texels: &[P::Encoding]
) -> Result<(), TextureError>
unsafe fn upload(
texture: &mut Self::TextureRepr,
gen_mipmaps: GenMipmaps,
size: D::Size,
texels: &[P::Encoding]
) -> Result<(), TextureError>
texture: &mut Self::TextureRepr,
gen_mipmaps: GenMipmaps,
size: D::Size,
texels: &[P::Encoding]
) -> Result<(), TextureError>
unsafe fn upload_part_raw(
texture: &mut Self::TextureRepr,
gen_mipmaps: GenMipmaps,
offset: D::Offset,
size: D::Size,
texels: &[P::RawEncoding]
) -> Result<(), TextureError>
texture: &mut Self::TextureRepr,
gen_mipmaps: GenMipmaps,
offset: D::Offset,
size: D::Size,
texels: &[P::RawEncoding]
) -> Result<(), TextureError>
unsafe fn upload_raw(
texture: &mut Self::TextureRepr,
gen_mipmaps: GenMipmaps,
size: D::Size,
texels: &[P::RawEncoding]
) -> Result<(), TextureError>
texture: &mut Self::TextureRepr,
gen_mipmaps: GenMipmaps,
size: D::Size,
texels: &[P::RawEncoding]
) -> Result<(), TextureError>
unsafe fn get_raw_texels(
texture: &Self::TextureRepr,
size: D::Size
) -> Result<Vec<P::RawEncoding>, TextureError> where
P::RawEncoding: Copy + Default,
texture: &Self::TextureRepr,
size: D::Size
) -> Result<Vec<P::RawEncoding>, TextureError> where
P::RawEncoding: Copy + Default,