Enum grr::ImageType

source ·
pub enum ImageType {
    D1 {
        width: u32,
        layers: u32,
    },
    D2 {
        width: u32,
        height: u32,
        layers: u32,
        samples: u32,
    },
    D3 {
        width: u32,
        height: u32,
        depth: u32,
    },
}
Expand description

Image dimensionality type.

Layer, as in arrays or cube maps, don’t affect the dimensionality type.

Variants

D1

Fields

width: u32
layers: u32

D2

Fields

width: u32
height: u32
layers: u32
samples: u32

D3

Fields

width: u32
height: u32
depth: u32

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.