pub struct TranscodedImage {
pub data: Vec<u8>,
pub data_order: TextureDataOrder,
pub size: Extent3d,
pub format: TextureFormat,
pub mip_level_count: u32,
pub view_dimension: TextureViewDimension,
}Available on crate feature
extra only.Fields§
§data: Vec<u8>The output data of image pixels.
data_order: TextureDataOrderThe data order. Currently it’s always TextureDataOrder::MipMajor.
size: Extent3dThe size of transcoded image.
format: TextureFormatThe format of transcoded image.
mip_level_count: u32The mip level count of transcoded image.
view_dimension: TextureViewDimensionThe texture view dimension of transcoded image. It can be D2, D2Array, Cube or CubeArray.
Trait Implementations§
Source§impl Clone for TranscodedImage
impl Clone for TranscodedImage
Source§fn clone(&self) -> TranscodedImage
fn clone(&self) -> TranscodedImage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TranscodedImage
impl Debug for TranscodedImage
Source§impl PartialEq for TranscodedImage
impl PartialEq for TranscodedImage
Source§fn eq(&self, other: &TranscodedImage) -> bool
fn eq(&self, other: &TranscodedImage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TranscodedImage
Auto Trait Implementations§
impl Freeze for TranscodedImage
impl RefUnwindSafe for TranscodedImage
impl Send for TranscodedImage
impl Sync for TranscodedImage
impl Unpin for TranscodedImage
impl UnsafeUnpin for TranscodedImage
impl UnwindSafe for TranscodedImage
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