Enum gfx::ShaderSet
[−]
[src]
pub enum ShaderSet<R> where
R: Resources, { Simple(VertexShader<R>, PixelShader<R>), Geometry(VertexShader<R>, GeometryShader<R>, PixelShader<R>), Tessellated(VertexShader<R>, HullShader<R>, DomainShader<R>, PixelShader<R>), }
A complete set of shaders to link a program.
Variants
Simple(VertexShader<R>, PixelShader<R>)
Simple program: Vs-Ps
Geometry(VertexShader<R>, GeometryShader<R>, PixelShader<R>)
Geometry shader programs: Vs-Gs-Ps
Tessellated(VertexShader<R>, HullShader<R>, DomainShader<R>, PixelShader<R>)
Tessellated TODO: Tessellated, TessellatedGeometry, TransformFeedback
Methods
impl<R> ShaderSet<R> where
R: Resources,
[src]
R: Resources,
Trait Implementations
impl<R> Clone for ShaderSet<R> where
R: Resources + Clone,
[src]
R: Resources + Clone,
fn clone(&self) -> ShaderSet<R>
[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<R> Hash for ShaderSet<R> where
R: Resources + Hash,
[src]
R: Resources + Hash,
fn hash<__HR>(&self, __arg_0: &mut __HR) where
__HR: Hasher,
[src]
__HR: 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<R> PartialEq<ShaderSet<R>> for ShaderSet<R> where
R: Resources + PartialEq<R>,
[src]
R: Resources + PartialEq<R>,
fn eq(&self, __arg_0: &ShaderSet<R>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ShaderSet<R>) -> bool
[src]
This method tests for !=
.
impl<R> Debug for ShaderSet<R> where
R: Resources + Debug,
[src]
R: Resources + Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<R> Eq for ShaderSet<R> where
R: Resources + Eq,
[src]
R: Resources + Eq,