Enum gfx_core::shade::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

Buffer

Sample from a buffer.

D1(IsArray)

Sample from a 1D texture

D2(IsArrayIsMultiSample)

Sample from a 2D texture

D3

Sample from a 3D texture

Cube(IsArray)

Sample from a cubemap.

Methods

impl TextureType
[src]

fn can_sample(&self) -> bool

Check if this texture can be used with a sampler.

Trait Implementations

impl Debug for TextureType
[src]

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

Formats the value using the given formatter.

impl PartialEq for TextureType
[src]

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

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

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

This method tests for !=.

impl Clone for TextureType
[src]

fn clone(&self) -> TextureType

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for TextureType
[src]