pub fn compile_shader(src: &str, shader_type: GLenum) -> OpticResult<u32>Expand description
Compiles a single GLSL shader stage.
shader_type should be one of gl::VERTEX_SHADER, gl::FRAGMENT_SHADER,
or gl::COMPUTE_SHADER. Returns the shader object ID on success.