Struct gfx::device::shade::SamplerVar [] [src]

pub struct SamplerVar {
    pub name: String,
    pub location: Location,
    pub base_type: BaseType,
    pub sampler_type: SamplerType,
}

Sampler, a type of shader parameter representing a texture that can be sampled.

Fields

name

Name of this sampler variable.

location

Location of this sampler in the program.

base_type

Base type for the sampler.

sampler_type

Type of this sampler.

Trait Implementations

Derived Implementations

impl Debug for SamplerVar

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

impl PartialEq for SamplerVar

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

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

impl Clone for SamplerVar

fn clone(&self) -> SamplerVar

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