Enum gfx_core::texture::Kind [] [src]

pub enum Kind {
    D1(Size),
    D1Array(SizeLayer),
    D2(SizeSizeAaMode),
    D2Array(SizeSizeLayerAaMode),
    D3(SizeSizeSize),
    Cube(Size),
    CubeArray(SizeLayer),
}

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 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 Copy for Kind
[src]

impl Debug for Kind
[src]

[src]

Formats the value using the given formatter.

impl Eq for Kind
[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 Ord for Kind
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialEq 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 PartialOrd for Kind
[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