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

Format of each texel.

Which mipmap to select.

Methods

impl<F> ImageInfoCommon<F>
[src]

[src]

Get the total number of texels.

[src]

Convert into a differently typed format.

[src]

Check if it fits inside given dimensions.

impl ImageInfoCommon<Format>
[src]

[src]

Get the total number of bytes.

Trait Implementations

impl<F> Ord for ImageInfoCommon<F> where
    F: Ord
[src]

[src]

impl<F> Copy for ImageInfoCommon<F> where
    F: Copy
[src]

impl<F> Clone for ImageInfoCommon<F> where
    F: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<F> PartialOrd<ImageInfoCommon<F>> for ImageInfoCommon<F> where
    F: PartialOrd<F>, 
[src]

[src]

[src]

[src]

[src]

[src]

impl<F> Hash for ImageInfoCommon<F> where
    F: Hash
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

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]

[src]

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

[src]

This method tests for !=.

impl<F> Debug for ImageInfoCommon<F> where
    F: Debug
[src]

[src]

Formats the value using the given formatter.

impl<F> Eq for ImageInfoCommon<F> where
    F: Eq
[src]