pub struct ImageInfoCommon<F> {
pub xoffset: u16,
pub yoffset: u16,
pub zoffset: u16,
pub width: u16,
pub height: u16,
pub depth: u16,
pub format: F,
pub mipmap: u8,
}Expand description
Describes a subvolume of a texture, which image data can be uploaded into.
Fields§
§xoffset: u16§yoffset: u16§zoffset: u16§width: u16§height: u16§depth: u16§format: FFormat of each texel.
mipmap: u8Which mipmap to select.
Implementations§
Source§impl<F> ImageInfoCommon<F>
impl<F> ImageInfoCommon<F>
Source§impl ImageInfoCommon<Format>
impl ImageInfoCommon<Format>
Sourcepub fn get_byte_count(&self) -> usize
pub fn get_byte_count(&self) -> usize
Get the total number of bytes.
Trait Implementations§
Source§impl<F> Clone for ImageInfoCommon<F>where
F: Clone,
impl<F> Clone for ImageInfoCommon<F>where
F: Clone,
Source§fn clone(&self) -> ImageInfoCommon<F>
fn clone(&self) -> ImageInfoCommon<F>
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<F> Debug for ImageInfoCommon<F>where
F: Debug,
impl<F> Debug for ImageInfoCommon<F>where
F: Debug,
Source§impl<F> Hash for ImageInfoCommon<F>where
F: Hash,
impl<F> Hash for ImageInfoCommon<F>where
F: Hash,
Source§impl<F> Ord for ImageInfoCommon<F>where
F: Ord,
impl<F> Ord for ImageInfoCommon<F>where
F: Ord,
Source§fn cmp(&self, other: &ImageInfoCommon<F>) -> Ordering
fn cmp(&self, other: &ImageInfoCommon<F>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<F> PartialEq for ImageInfoCommon<F>where
F: PartialEq,
impl<F> PartialEq for ImageInfoCommon<F>where
F: PartialEq,
Source§impl<F> PartialOrd for ImageInfoCommon<F>where
F: PartialOrd,
impl<F> PartialOrd for ImageInfoCommon<F>where
F: PartialOrd,
impl<F> Copy for ImageInfoCommon<F>where
F: Copy,
impl<F> Eq for ImageInfoCommon<F>where
F: Eq,
impl<F> StructuralPartialEq for ImageInfoCommon<F>
Auto Trait Implementations§
impl<F> Freeze for ImageInfoCommon<F>where
F: Freeze,
impl<F> RefUnwindSafe for ImageInfoCommon<F>where
F: RefUnwindSafe,
impl<F> Send for ImageInfoCommon<F>where
F: Send,
impl<F> Sync for ImageInfoCommon<F>where
F: Sync,
impl<F> Unpin for ImageInfoCommon<F>where
F: Unpin,
impl<F> UnwindSafe for ImageInfoCommon<F>where
F: 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