compile_shader

Function compile_shader 

Source
pub unsafe fn compile_shader(
    gl: &Gles2,
    variant: GLuint,
    src: &str,
) -> Result<GLuint, GlesError>
Available on crate feature renderer_gl only.
Expand description

Compiles a shader variant.

ยงSafety

You must call this only when it is safe to compile shaders with GL.