Enum gfx::texture::Kind []

pub enum Kind {
    D1(u16),
    D1Array(u16u16),
    D2(u16u16AaMode),
    D2Array(u16u16u16AaMode),
    D3(u16u16u16),
    Cube(u16),
    CubeArray(u16u16),
}

Specifies the kind of a texture storage to be allocated.

Variants

A single row of texels.

An array of rows of texels. Equivalent to Texture2D except that texels in a different row are not sampled.

A traditional 2D texture, with rows arranged contiguously.

An array of 2D textures. Equivalent to Texture3D except that texels in a different depth level are not sampled.

A volume texture, with each 2D layer arranged contiguously.

A set of 6 2D textures, one for each face of a cube.

An array of Cube textures.

Methods

impl Kind

Get texture dimensions, with 0 values where not applicable.

Get the dimensionality of a particular mipmap level.

Count the number of mipmap levels.

Return the number of slices for an array, or None for non-arrays.

Check if it's one of the cube kinds.

Trait Implementations

impl Eq for Kind

impl Hash for Kind

impl PartialOrd<Kind> for Kind

impl Debug for Kind

Formats the value using the given formatter.

impl PartialEq<Kind> for Kind

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

This method tests for !=.

impl Ord for Kind

impl Copy for Kind

impl Clone for Kind

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more