Enum gfx::device::shade::SamplerType [] [src]

pub enum SamplerType {
    SamplerBuffer,
    Sampler1D(IsArray, IsShadow),
    Sampler2D(IsArray, IsShadow, IsMultiSample, IsRect),
    Sampler3D,
    SamplerCube(IsShadow),
}

What texture type this sampler samples from.

A single sampler cannot be used with multiple texture types.

Variants

SamplerBuffer

Sample from a buffer.

Sampler1D

Sample from a 1D texture

Sampler2D

Sample from a 2D texture

Sampler3D

Sample from a 3D texture

SamplerCube

Sample from a cubemap.

Trait Implementations

Derived Implementations

impl Debug for SamplerType

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

impl PartialEq for SamplerType

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

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

impl Clone for SamplerType

fn clone(&self) -> SamplerType

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

impl Copy for SamplerType