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

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

Check if this texture can be used with a sampler.

Trait Implementations

impl Debug for TextureType

Formats the value using the given formatter.

impl PartialEq<TextureType> for TextureType

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

This method tests for !=.

impl Hash for TextureType

impl Eq for TextureType

impl Copy for TextureType

impl Clone for TextureType

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more