Struct gfx::texture::ImageInfoCommon
source · 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: F
Format of each texel.
mipmap: u8
Which 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 copy 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<ImageInfoCommon<F>> for ImageInfoCommon<F>where
F: PartialEq<F>,
impl<F> PartialEq<ImageInfoCommon<F>> for ImageInfoCommon<F>where F: PartialEq<F>,
source§fn eq(&self, other: &ImageInfoCommon<F>) -> bool
fn eq(&self, other: &ImageInfoCommon<F>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<F> PartialOrd<ImageInfoCommon<F>> for ImageInfoCommon<F>where
F: PartialOrd<F>,
impl<F> PartialOrd<ImageInfoCommon<F>> for ImageInfoCommon<F>where F: PartialOrd<F>,
source§fn partial_cmp(&self, other: &ImageInfoCommon<F>) -> Option<Ordering>
fn partial_cmp(&self, other: &ImageInfoCommon<F>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more