pub struct ImageInner {
pub id: u64,
pub size: [u32; 2],
pub texture: Texture,
pub view: TextureView,
pub mip_levels: u32,
}Expand description
ImageInner contains the shared resources and metadata behind an Image.
Fields§
§id: u64id is the process-unique identity of this image.
size: [u32; 2]size is the image dimensions in pixels.
texture: Texturetexture stores the image pixels.
view: TextureViewview exposes the complete texture for sampling.
mip_levels: u32mip_levels is the number of available mip levels.
Auto Trait Implementations§
impl !RefUnwindSafe for ImageInner
impl !UnwindSafe for ImageInner
impl Freeze for ImageInner
impl Send for ImageInner
impl Sync for ImageInner
impl Unpin for ImageInner
impl UnsafeUnpin for ImageInner
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