[−][src]Struct window::ShaderBuilder
A builder for portable shaders.
Fields
transform: u8
Number of transform matrices for this shader.
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
instance_count: u16
Number of instances allowed in shader.
Auto Trait Implementations
impl Sync for ShaderBuilder
impl Send for ShaderBuilder
impl Unpin for ShaderBuilder
impl RefUnwindSafe for ShaderBuilder
impl UnwindSafe for ShaderBuilder
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,