Enum gfx::texture::Kind [] [src]

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
[src]

[src]

Get texture dimensions, with 0 values where not applicable.

[src]

Get the dimensionality of a particular mipmap level.

[src]

Count the number of mipmap levels.

[src]

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

[src]

Check if it's one of the cube kinds.

Trait Implementations

impl Ord for Kind
[src]

[src]

impl Copy for Kind
[src]

impl Clone for Kind
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialOrd<Kind> for Kind
[src]

[src]

[src]

[src]

[src]

[src]

impl Hash for Kind
[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 PartialEq<Kind> for Kind
[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 Debug for Kind
[src]

[src]

Formats the value using the given formatter.

impl Eq for Kind
[src]