[−][src]Function tetra::graphics::set_shader
pub fn set_shader(ctx: &mut Context, shader: &Shader)
Sets the shader that is currently being used for rendering.
If the shader is different from the one that is currently in use, this will trigger a
flush
to the graphics hardware - try to avoid shader swapping as
much as you can.