Struct gfx::tex::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.

Trait Implementations

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

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

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> 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> PartialOrd<ImageInfoCommon<F>> for ImageInfoCommon<F> where
    F: PartialOrd<F>, 
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

[src]

Formats the value using the given formatter. Read more

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> Ord for ImageInfoCommon<F> where
    F: Ord
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more