pub struct Image<T> {
pub extents: Extents,
pub data: T,
}
Expand description
The 3D image type. Each pixel should be RGBA. The data can be anything that dereferences to a
flat array of color components, as long as the color components are in one of the supported
formats. For HDR images, f32
or half::f16
must be used.
Fields§
§extents: Extents
The dimensions of the image. This must match the length of the data.
data: T
The data array.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Image<T>where
T: Freeze,
impl<T> RefUnwindSafe for Image<T>where
T: RefUnwindSafe,
impl<T> Send for Image<T>where
T: Send,
impl<T> Sync for Image<T>where
T: Sync,
impl<T> Unpin for Image<T>where
T: Unpin,
impl<T> UnwindSafe for Image<T>where
T: UnwindSafe,
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