pub enum WebGlProgramError {
ShaderCompile(String),
ProgramLink(String),
}Expand description
Errors that can occur while building a WebGL shader program.
Each variant carries the browser-provided info log so the caller can surface the exact GLSL diagnostic without losing fidelity.
Variants§
ShaderCompile(String)
Vertex or fragment shader compilation failed.
Carries the shader info log returned by getShaderInfoLog.
ProgramLink(String)
Program linking failed (or createProgram returned None).
Carries the program info log returned by getProgramInfoLog.
Trait Implementations§
Source§impl Clone for WebGlProgramError
impl Clone for WebGlProgramError
Source§fn clone(&self) -> WebGlProgramError
fn clone(&self) -> WebGlProgramError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebGlProgramError
impl Debug for WebGlProgramError
Source§impl Display for WebGlProgramError
Implements std::fmt::Display for WebGlProgramError.
impl Display for WebGlProgramError
Implements std::fmt::Display for WebGlProgramError.
The formatted message includes the browser-provided info log so GLSL diagnostics are visible verbatim in the console.
Source§impl Error for WebGlProgramError
Implements the standard std::error::Error trait for WebGlProgramError.
impl Error for WebGlProgramError
Implements the standard std::error::Error trait for WebGlProgramError.
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for WebGlProgramError
impl RefUnwindSafe for WebGlProgramError
impl Send for WebGlProgramError
impl Sync for WebGlProgramError
impl Unpin for WebGlProgramError
impl UnsafeUnpin for WebGlProgramError
impl UnwindSafe for WebGlProgramError
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