Enum glium::program::ProgramCreationError
source · pub enum ProgramCreationError {
CompilationError(String, ShaderType),
LinkingError(String),
ShaderTypeNotSupported,
CompilationNotSupported,
TransformFeedbackNotSupported,
PointSizeNotSupported,
BinaryHeaderError,
}
Expand description
Error that can be triggered when creating a Program
.
Variants§
CompilationError(String, ShaderType)
Error while compiling one of the shaders.
LinkingError(String)
Error while linking the program.
ShaderTypeNotSupported
One of the requested shader types is not supported by the backend.
Usually the case for geometry shaders.
CompilationNotSupported
The OpenGL implementation doesn’t provide a compiler.
TransformFeedbackNotSupported
You have requested transform feedback varyings, but transform feedback is not supported by the backend.
PointSizeNotSupported
You have requested point size setting from the shader, but it’s not supported by the backend.
BinaryHeaderError
The glium-specific binary header was not found or is corrupt.
Trait Implementations§
source§impl Clone for ProgramCreationError
impl Clone for ProgramCreationError
source§fn clone(&self) -> ProgramCreationError
fn clone(&self) -> ProgramCreationError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProgramCreationError
impl Debug for ProgramCreationError
source§impl Display for ProgramCreationError
impl Display for ProgramCreationError
source§impl Error for ProgramCreationError
impl Error for ProgramCreationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ProgramCreationError> for ProgramChooserCreationError
impl From<ProgramCreationError> for ProgramChooserCreationError
source§fn from(err: ProgramCreationError) -> ProgramChooserCreationError
fn from(err: ProgramCreationError) -> ProgramChooserCreationError
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ProgramCreationError
impl Send for ProgramCreationError
impl Sync for ProgramCreationError
impl Unpin for ProgramCreationError
impl UnwindSafe for ProgramCreationError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more