Struct gfx::shade::core::SamplerVar
[−]
[src]
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 Clone for SamplerVar
[src]
fn clone(&self) -> SamplerVar
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for SamplerVar
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq<SamplerVar> for SamplerVar
[src]
fn eq(&self, __arg_0: &SamplerVar) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SamplerVar) -> bool
[src]
This method tests for !=
.
impl Debug for SamplerVar
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.