Struct glitter::shader::ShaderBuilder
[−]
[src]
pub struct ShaderBuilder<'a, C: 'a> where
C: AContext, { /* fields omitted */ }A safe interface for creating a shader with a source, and returning an error or panicking if there is an error.
Methods
impl<'a, C: 'a> ShaderBuilder<'a, C> where
C: AContext, [src]
C: AContext,
pub fn try_unwrap(self) -> Result<Shader, GLError>[src]
Try to compile a shader with the provided options, or Err if
a new shader object could not be created or if there was an error
compiling the provided source.
pub fn unwrap(self) -> Shader[src]
Try to compile a shader with the provided options, panicking if a new shader object could not be created or if there was an error compiling the provided source.