[−][src]Struct gfx::texture::ImageInfoCommon
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]
pub fn get_texel_count(&self) -> usize
[src]
Get the total number of texels.
pub fn convert<T>(&self, new_format: T) -> ImageInfoCommon<T>
[src]
Convert into a differently typed format.
pub fn is_inside(&self, (u16, u16, u16, AaMode)) -> bool
[src]
Check if it fits inside given dimensions.
impl ImageInfoCommon<Format>
[src]
pub 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, other: &ImageInfoCommon<F>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl<F> Eq for ImageInfoCommon<F> where
F: Eq,
[src]
F: Eq,
impl<F> Clone for ImageInfoCommon<F> where
F: Clone,
[src]
F: Clone,
fn clone(&self) -> ImageInfoCommon<F>
[src]
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, other: &ImageInfoCommon<F>) -> Option<Ordering>
[src]
fn lt(&self, other: &ImageInfoCommon<F>) -> bool
[src]
fn le(&self, other: &ImageInfoCommon<F>) -> bool
[src]
fn gt(&self, other: &ImageInfoCommon<F>) -> bool
[src]
fn ge(&self, other: &ImageInfoCommon<F>) -> bool
[src]
impl<F> Copy for ImageInfoCommon<F> where
F: Copy,
[src]
F: Copy,
impl<F> PartialEq<ImageInfoCommon<F>> for ImageInfoCommon<F> where
F: PartialEq<F>,
[src]
F: PartialEq<F>,
fn eq(&self, other: &ImageInfoCommon<F>) -> bool
[src]
fn ne(&self, other: &ImageInfoCommon<F>) -> bool
[src]
impl<F> Hash for ImageInfoCommon<F> where
F: Hash,
[src]
F: Hash,
fn hash<__HF>(&self, state: &mut __HF) where
__HF: Hasher,
[src]
__HF: Hasher,
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> Debug for ImageInfoCommon<F> where
F: Debug,
[src]
F: Debug,
Auto Trait Implementations
impl<F> Send for ImageInfoCommon<F> where
F: Send,
F: Send,
impl<F> Sync for ImageInfoCommon<F> where
F: Sync,
F: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,