Struct gfx::texture::ImageInfoCommon
[−]
[src]
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, }
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.
Methods
impl<F> ImageInfoCommon<F>
[src]
fn get_texel_count(&self) -> usize
[src]
Get the total number of texels.
fn convert<T>(&self, new_format: T) -> ImageInfoCommon<T>
[src]
Convert into a differently typed format.
fn is_inside(&self, (u16, u16, u16, AaMode)) -> bool
[src]
Check if it fits inside given dimensions.
impl ImageInfoCommon<Format>
[src]
fn get_byte_count(&self) -> usize
[src]
Get the total number of bytes.
Trait Implementations
impl<F> Ord for ImageInfoCommon<F> where
F: Ord,
[src]
F: Ord,
fn cmp(&self, __arg_0: &ImageInfoCommon<F>) -> Ordering
[src]
impl<F> Copy for ImageInfoCommon<F> where
F: Copy,
[src]
F: Copy,
impl<F> Clone for ImageInfoCommon<F> where
F: Clone,
[src]
F: Clone,
fn clone(&self) -> ImageInfoCommon<F>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<F> PartialOrd<ImageInfoCommon<F>> for ImageInfoCommon<F> where
F: PartialOrd<F>,
[src]
F: PartialOrd<F>,
fn partial_cmp(&self, __arg_0: &ImageInfoCommon<F>) -> Option<Ordering>
[src]
fn lt(&self, __arg_0: &ImageInfoCommon<F>) -> bool
[src]
fn le(&self, __arg_0: &ImageInfoCommon<F>) -> bool
[src]
fn gt(&self, __arg_0: &ImageInfoCommon<F>) -> bool
[src]
fn ge(&self, __arg_0: &ImageInfoCommon<F>) -> bool
[src]
impl<F> Hash for ImageInfoCommon<F> where
F: Hash,
[src]
F: Hash,
fn hash<__HF>(&self, __arg_0: &mut __HF) where
__HF: Hasher,
[src]
__HF: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<F> PartialEq<ImageInfoCommon<F>> for ImageInfoCommon<F> where
F: PartialEq<F>,
[src]
F: PartialEq<F>,
fn eq(&self, __arg_0: &ImageInfoCommon<F>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ImageInfoCommon<F>) -> bool
[src]
This method tests for !=
.
impl<F> Debug for ImageInfoCommon<F> where
F: Debug,
[src]
F: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<F> Eq for ImageInfoCommon<F> where
F: Eq,
[src]
F: Eq,