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

pub enum SamplerType {
    SamplerBuffer,
    Sampler1D(IsArrayIsShadow),
    Sampler2D(IsArrayIsShadowIsMultiSampleIsRect),
    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(IsArrayIsShadow)

Sample from a 1D texture

Sampler2D(IsArrayIsShadowIsMultiSampleIsRect)

Sample from a 2D texture

Sampler3D

Sample from a 3D texture

SamplerCube(IsShadow)

Sample from a cubemap.

Trait Implementations

impl Debug for SamplerType
[src]

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

Formats the value using the given formatter.

impl PartialEq for SamplerType
[src]

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

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

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

This method tests for !=.

impl Clone for SamplerType
[src]

fn clone(&self) -> SamplerType

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 SamplerType
[src]