Function opengl_graphics::shader_utils::compile_shader [−] [src]

pub fn compile_shader(shader_type: GLenum, source: &str) -> Result<GLuint, String>

Compiles a shader.

Returns a shader or a message with the error.