#[non_exhaustive]pub enum OpenGLFilterError {
InvalidOption(String),
ContextCreation(String),
}the OpenGL filter path is superseded by wgpu_filter (feature โwgpuโ): it needs a display connection and converts colors on the CPU; see the module docs for migration
Expand description
Errors from the OpenGLFrameFilter constructors (mirrors
WgpuFilterError for the wgpu feature; converts into
crate::error::Error::OpenGLFilter).
Runtime failures (shader compilation and linking, GL object creation,
frame upload and readback) surface through the pipeline as
FrameFilterError
instead โ this type covers what can go wrong before a frame flows.
Variants (Non-exhaustive)ยง
This enum is marked as non-exhaustive
InvalidOption(String)
the OpenGL filter path is superseded by wgpu_filter (feature โwgpuโ): it needs a display connection and converts colors on the CPU; see the module docs for migration
A constructor option is invalid: the fragment shader passed to
new_simple is missing the in vec2 TexCoord; input that the
default vertex shader feeds.
ContextCreation(String)
the OpenGL filter path is superseded by wgpu_filter (feature โwgpuโ): it needs a display connection and converts colors on the CPU; see the module docs for migration
Surfman could not provide a GL device or context: no display connection, no usable adapter, or the requested GL version is unsupported.
Trait Implementationsยง
Sourceยงimpl Debug for OpenGLFilterError
impl Debug for OpenGLFilterError
Sourceยงimpl Display for OpenGLFilterError
impl Display for OpenGLFilterError
Sourceยงimpl Error for OpenGLFilterError
impl Error for OpenGLFilterError
1.30.0 ยท Sourceยงfn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 ยท Sourceยงfn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Sourceยงimpl From<OpenGLFilterError> for Error
Available on crate feature opengl only.
impl From<OpenGLFilterError> for Error
opengl only.