Struct gfx::texture::ImageInfoCommon []

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

Format of each texel.

Which mipmap to select.

Methods

impl<F> ImageInfoCommon<F>

Get the total number of texels.

Convert into a differently typed format.

Check if it fits inside given dimensions.

Trait Implementations

impl<F> Debug for ImageInfoCommon<F> where F: Debug

Formats the value using the given formatter.

impl<F> PartialOrd<ImageInfoCommon<F>> for ImageInfoCommon<F> where F: PartialOrd<F>

impl<F> PartialEq<ImageInfoCommon<F>> for ImageInfoCommon<F> where F: PartialEq<F>

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<F> Ord for ImageInfoCommon<F> where F: Ord

impl<F> Hash for ImageInfoCommon<F> where F: Hash

impl<F> Eq for ImageInfoCommon<F> where F: Eq

impl<F> Copy for ImageInfoCommon<F> where F: Copy

impl<F> Clone for ImageInfoCommon<F> where F: Clone

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more