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>), TessellatedGeometry(VertexShader<R>, HullShader<R>, DomainShader<R>, GeometryShader<R>, PixelShader<R>), }

A complete set of shaders to link a program. TODO: TransformFeedback

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>)

Tessellation programs: Vs-Hs-Ds-Ps

TessellatedGeometry(VertexShader<R>, HullShader<R>, DomainShader<R>, GeometryShader<R>, PixelShader<R>)

TessellatedGeometry programs: Vs-Hs-Ds-Hs-Ps

Implementations

impl<R> ShaderSet<R> where
    R: Resources
[src]

pub fn get_usage(&self) -> Usage[src]

Return the aggregated stage usage for the set.

Trait Implementations

impl<R> Clone for ShaderSet<R> where
    R: Clone + Resources
[src]

impl<R> Debug for ShaderSet<R> where
    R: Debug + Resources
[src]

impl<R> Eq for ShaderSet<R> where
    R: Eq + Resources
[src]

impl<R> Hash for ShaderSet<R> where
    R: Hash + Resources
[src]

impl<R> PartialEq<ShaderSet<R>> for ShaderSet<R> where
    R: PartialEq<R> + Resources
[src]

impl<R> StructuralEq for ShaderSet<R> where
    R: Resources
[src]

impl<R> StructuralPartialEq for ShaderSet<R> where
    R: Resources
[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for ShaderSet<R> where
    <R as Resources>::Shader: RefUnwindSafe

impl<R> Send for ShaderSet<R>

impl<R> Sync for ShaderSet<R>

impl<R> Unpin for ShaderSet<R>

impl<R> UnwindSafe for ShaderSet<R> where
    <R as Resources>::Shader: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.