[][src]Struct window::ShaderBuilder

pub struct ShaderBuilder {
    pub tint: bool,
    pub gradient: bool,
    pub graphic: bool,
    pub depth: bool,
    pub blend: bool,
    pub opengl_frag: &'static str,
    pub opengl_vert: &'static str,
}

A builder for portable shaders.

Fields

tint: bool

Whether or not shapes for this shader have a tint

gradient: bool

Whether or not vertices have attached colors for this shader.

graphic: bool

Whether or not a graphic is attached to this shader.

depth: bool

Whether or not depth test & perspective are enabled for this shader.

blend: bool

Whether or not blending is enabled for this shader.

opengl_frag: &'static str

OpenGL/OpenGLES GLSL Fragment Shader

opengl_vert: &'static str

OpenGL/OpenGLES GLSL Vertex Shader

Auto Trait Implementations

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<'a, T> DynBoxFut<'a> for T[src]

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

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

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.