Enum gfx::shade::core::TextureType [] [src]

pub enum TextureType {
    Buffer,
    D1(IsArray),
    D2(IsArrayIsMultiSample),
    D3,
    Cube(IsArray),
}

A type of the texture variable. This has to match the actual data we bind to the shader.

Variants

Sample from a buffer.

Sample from a 1D texture

Sample from a 2D texture

Sample from a 3D texture

Sample from a cubemap.

Methods

impl TextureType
[src]

Check if this texture can be used with a sampler.

Trait Implementations

impl Copy for TextureType
[src]

impl PartialEq<TextureType> for TextureType
[src]

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

This method tests for !=.

impl Eq for TextureType
[src]

impl Hash for TextureType
[src]

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

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

impl Debug for TextureType
[src]

Formats the value using the given formatter.

impl Clone for TextureType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more