Struct avenger_wgpu::marks::image::ImageAtlasBuilder
source · pub struct ImageAtlasBuilder { /* private fields */ }Implementations§
source§impl ImageAtlasBuilder
impl ImageAtlasBuilder
pub fn new() -> Self
pub fn register_image( &mut self, img: &RgbaImage ) -> Result<(usize, ImageAtlasCoords), AvengerWgpuError>
pub fn build(&self) -> (Extent3d, Vec<DynamicImage>)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ImageAtlasBuilder
impl Send for ImageAtlasBuilder
impl Sync for ImageAtlasBuilder
impl Unpin for ImageAtlasBuilder
impl UnwindSafe for ImageAtlasBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().