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: String

Name of this sampler variable.

location: Location

Location of this sampler in the program.

base_type: BaseType

Base type for the sampler.

sampler_type: SamplerType

Type of this sampler.

Trait Implementations

impl Debug for SamplerVar
[src]

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

Formats the value using the given formatter.

impl PartialEq for SamplerVar
[src]

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

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

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

This method tests for !=.

impl Clone for SamplerVar
[src]

fn clone(&self) -> SamplerVar

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