Enum gfx_core::shade::TextureType [] [src]

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

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

Variants

Buffer

Sample from a buffer.

D1

Sample from a 1D texture

D2

Sample from a 2D texture

D3

Sample from a 3D texture

Cube

Sample from a cubemap.

Methods

impl TextureType

fn can_sample(&self) -> bool

Check if this texture can be used with a sampler.

Trait Implementations

Derived Implementations

impl Debug for TextureType

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for TextureType

fn eq(&self, __arg_0: &TextureType) -> bool

fn ne(&self, __arg_0: &TextureType) -> bool

impl Clone for TextureType

fn clone(&self) -> TextureType

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for TextureType