pub struct Texture<P: Pixel> {
pub size: u32,
pub mip_level_count: u32,
pub mip_maps: Vec<ImageBuffer<P, Vec<P::Subpixel>>>,
}
Expand description
A output texture entry of texture atlas.
size
: A output texture width and height (same width and height).mip_level_count
: A mip map count of output texture (1 is no mip map).mip_maps
: A vec of mip map.
Fields§
§size: u32
§mip_level_count: u32
§mip_maps: Vec<ImageBuffer<P, Vec<P::Subpixel>>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for Texture<P>
impl<P> RefUnwindSafe for Texture<P>
impl<P> Send for Texture<P>
impl<P> Sync for Texture<P>
impl<P> Unpin for Texture<P>
impl<P> UnwindSafe for Texture<P>
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