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,
}Expand description
A builder for portable shaders.
Fields§
§tint: boolWhether or not shapes for this shader have a tint
gradient: boolWhether or not vertices have attached colors for this shader.
graphic: boolWhether or not a graphic is attached to this shader.
depth: boolWhether or not depth test & perspective are enabled for this shader.
blend: boolWhether or not blending is enabled for this shader.
opengl_frag: &'static strOpenGL/OpenGLES GLSL Fragment Shader
opengl_vert: &'static strOpenGL/OpenGLES GLSL Vertex Shader
Auto Trait Implementations§
impl Freeze for ShaderBuilder
impl RefUnwindSafe for ShaderBuilder
impl Send for ShaderBuilder
impl Sync for ShaderBuilder
impl Unpin for ShaderBuilder
impl UnwindSafe for ShaderBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more