Struct glium::texture::CompressedSrgbTexture3dMipmap
[−]
[src]
pub struct CompressedSrgbTexture3dMipmap<'t>(_, _);
Represents a single mipmap level of a CompressedSrgbTexture3d.
Can be obtained by calling CompressedSrgbTexture3d::mipmap() or CompressedSrgbTexture3d::main_level().
Methods
impl<'t> CompressedSrgbTexture3dMipmap<'t>
fn read_compressed_data(&self) -> Option<(CompressedSrgbFormat, Vec<u8>)>
Reads the content of the texture level to RAM without decompressing it before.
You should avoid doing this at all cost during performance-critical operations (for example, while you're drawing).
Returns the compressed format of the texture and the compressed data, gives
None when the internal compression format is generic or unknown.
fn get_texture(&self) -> &'t CompressedSrgbTexture3d
Returns the corresponding texture.
fn get_level(&self) -> u32
Returns the texture level.