#[repr(C)]pub struct astcenc_image {
pub dim_x: c_uint,
pub dim_y: c_uint,
pub dim_z: c_uint,
pub data_type: astcenc_type,
pub data: *mut *mut c_void,
}Expand description
@brief An uncompressed 2D or 3D image.
3D image are passed in as an array of 2D slices. Each slice has identical size and color format.
Fields§
§dim_x: c_uint@brief The X dimension of the image, in texels.
dim_y: c_uint@brief The Y dimension of the image, in texels.
dim_z: c_uint@brief The Z dimension of the image, in texels.
data_type: astcenc_type@brief The data type per component.
data: *mut *mut c_void@brief The array of 2D slices, of length @c dim_z.
Trait Implementations§
Source§impl Clone for astcenc_image
impl Clone for astcenc_image
Source§fn clone(&self) -> astcenc_image
fn clone(&self) -> astcenc_image
Returns a duplicate of the value. Read more
1.0.0 · 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 astcenc_image
impl Debug for astcenc_image
Source§impl Hash for astcenc_image
impl Hash for astcenc_image
Source§impl PartialEq for astcenc_image
impl PartialEq for astcenc_image
impl Copy for astcenc_image
impl Eq for astcenc_image
impl StructuralPartialEq for astcenc_image
Auto Trait Implementations§
impl Freeze for astcenc_image
impl RefUnwindSafe for astcenc_image
impl !Send for astcenc_image
impl !Sync for astcenc_image
impl Unpin for astcenc_image
impl UnwindSafe for astcenc_image
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