Function tetra::graphics::set_shader

source ·
pub fn set_shader(ctx: &mut Context, shader: &Shader)
Expand description

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.