[−][src]Enum grr::ImageType
Image dimensionality type.
Layer, as in arrays or cube maps, don't affect the dimensionality type.
Variants
Implementations
impl ImageType
[src]
pub fn num_texels(&self) -> usize
[src]
Return the number of texels in the top layer of the image.
pub fn width(&self) -> u32
[src]
Return the width of the image.
pub fn height(&self) -> u32
[src]
Return the height of the image.
pub fn depth(&self) -> u32
[src]
Return the height of the image.
pub fn full_extent(&self) -> Extent
[src]
Full extent of the image dimensions for a single layer.
pub fn samples(&self) -> u32
[src]
Return the number of samples in a texel of the image.
pub fn layers(&self) -> u32
[src]
Return the number of layers in the texutre.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ImageType
impl Send for ImageType
impl Sync for ImageType
impl Unpin for ImageType
impl UnwindSafe for ImageType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,