pub struct RasterMipChain { /* private fields */ }Expand description
Full generated mip chain for an RGBA8 raster image.
Implementations§
Source§impl RasterMipChain
impl RasterMipChain
Sourcepub fn levels(&self) -> &[RasterMipLevel]
pub fn levels(&self) -> &[RasterMipLevel]
Borrow all mip levels from base level 0 down to 1x1.
Sourcepub fn level_count(&self) -> u32
pub fn level_count(&self) -> u32
Number of mip levels in the chain.
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Flatten the full chain into one contiguous byte buffer.
The layout is level-major for a single-layer texture:
Mip0, Mip1, Mip2, ....
Trait Implementations§
Source§impl Clone for RasterMipChain
impl Clone for RasterMipChain
Source§fn clone(&self) -> RasterMipChain
fn clone(&self) -> RasterMipChain
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RasterMipChain
impl RefUnwindSafe for RasterMipChain
impl Send for RasterMipChain
impl Sync for RasterMipChain
impl Unpin for RasterMipChain
impl UnsafeUnpin for RasterMipChain
impl UnwindSafe for RasterMipChain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more