Struct gfx::shade::core::SamplerVar []

pub struct SamplerVar {
    pub name: String,
    pub slot: u8,
    pub ty: SamplerType,
    pub usage: Usage,
}

Sampler shader parameter.

Fields

name: String

Name of this sampler variable.

slot: u8

Slot of this sampler variable.

ty: SamplerType

Type of this sampler.

usage: Usage

What program stage this texture is used in.

Trait Implementations

impl Debug for SamplerVar

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

Formats the value using the given formatter.

impl PartialEq<SamplerVar> for SamplerVar

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

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