[go: up one dir, main page]

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]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Kind
[src]

impl Debug for Kind
[src]

Formats the value using the given formatter. Read more

impl Eq for Kind
[src]

impl Hash for Kind
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for Kind
[src]

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialEq for Kind
[src]

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

This method tests for !=.

impl PartialOrd for Kind
[src]

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

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

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

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

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

Auto Trait Implementations

impl Send for Kind

impl Sync for Kind