Struct gfx::shade::core::SamplerVar
source · pub struct SamplerVar {
pub name: String,
pub slot: u8,
pub ty: SamplerType,
pub usage: Usage,
}
Expand description
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§
source§impl Clone for SamplerVar
impl Clone for SamplerVar
source§fn clone(&self) -> SamplerVar
fn clone(&self) -> SamplerVar
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SamplerVar
impl Debug for SamplerVar
source§impl Hash for SamplerVar
impl Hash for SamplerVar
source§impl PartialEq<SamplerVar> for SamplerVar
impl PartialEq<SamplerVar> for SamplerVar
source§fn eq(&self, other: &SamplerVar) -> bool
fn eq(&self, other: &SamplerVar) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.