[−][src]Trait luminance::backend::texture::Texture
Required methods
pub unsafe fn new_texture(
&mut self,
size: D::Size,
mipmaps: usize,
sampler: Sampler
) -> Result<Self::TextureRepr, TextureError>
[src]
&mut self,
size: D::Size,
mipmaps: usize,
sampler: Sampler
) -> Result<Self::TextureRepr, TextureError>
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]
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>
[src]
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>
[src]
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>
[src]
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>
[src]
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>
[src]
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,
[src]
texture: &Self::TextureRepr,
size: D::Size
) -> Result<Vec<P::RawEncoding>, TextureError> where
P::RawEncoding: Copy + Default,