Enum surfman::error::WindowingApiError
source · pub enum WindowingApiError {
Show 32 variants
Failed,
BadAttribute,
BadProperty,
BadPixelFormat,
BadRendererInfo,
BadContext,
BadDrawable,
BadDisplay,
BadState,
BadValue,
BadMatch,
BadEnumeration,
BadOffScreen,
BadFullScreen,
BadWindow,
BadAddress,
BadCodeModule,
BadAlloc,
BadConnection,
NotInitialized,
BadAccess,
BadCurrentSurface,
BadSurface,
BadParameter,
BadNativePixmap,
BadNativeWindow,
ContextLost,
BadScreen,
NoExtension,
BadVisual,
BadOperation,
BadConfig,
}
Expand description
Abstraction of the errors that EGL, CGL, GLX, CGL, etc. return.
They all tend to follow similar patterns.
Variants§
Failed
Miscellaneous error.
BadAttribute
CGL: Invalid pixel format attribute. EGL: An unrecognized attribute or attribute value was passed in the attribute list. X11: Attribute to get is bad.
BadProperty
CGL: Invalid renderer property.
BadPixelFormat
CGL: Invalid pixel format object. X11: Invalid framebuffer configuration, including an unsupported OpenGL version.
BadRendererInfo
CGL: Invalid renderer information object.
BadContext
CGL: Invalid context object. EGL: An EGLContext argument does not name a valid EGL rendering context. X11: The context is invalid.
BadDrawable
Invalid drawable.
BadDisplay
CGL: Invalid display. EGL: An EGLDisplay argument does not name a valid EGL display connection.
BadState
CGL: Invalid context state.
BadValue
CGL: Invalid numerical value. X11: Invalid value. GL: Given when a value parameter is not a legal value for that function.
BadMatch
CGL: Invalid share context. EGL: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a valid surface).
BadEnumeration
CGL: Invalid enumerant (constant). X11: Invalid enum value. GL: Given when an enumeration parameter is not a legal enumeration for that function.
BadOffScreen
CGL: Invalid off-screen drawable.
BadFullScreen
CGL: Invalid full-screen drawable.
BadWindow
CGL: Invalid window.
BadAddress
CGL: Invalid address; e.g. null pointer passed to function requiring a non-null pointer argument.
BadCodeModule
CGL: Invalid code module.
BadAlloc
CGL: Invalid memory allocation; i.e. CGL couldn’t allocate memory. EGL: EGL failed to allocate resources for the requested operation.
BadConnection
CGL: Invalid Core Graphics connection.
NotInitialized
EGL: EGL is not initialized, or could not be initialized, for the specified EGL display connection.
BadAccess
EGL: EGL cannot access a requested resource (for example a context is bound in another thread).
BadCurrentSurface
EGL: The current surface of the calling thread is a window, pixel buffer or pixmap that is no longer valid.
BadSurface
EGL: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
BadParameter
EGL: One or more argument values are invalid.
BadNativePixmap
EGL: A NativePixmapType argument does not refer to a valid native pixmap.
BadNativeWindow
EGL: A NativeWindowType argument does not refer to a valid native window.
ContextLost
EGL: A power management event has occurred. The application must destroy all contexts and reinitialise OpenGL ES state and objects to continue rendering.
BadScreen
X11: Screen number is bad.
NoExtension
X11: The GLX extension is unavailable on the server.
BadVisual
X11: Visual number not known by GLX.
BadOperation
GL: Given when the set of state for a command is not legal for the parameters given to that command.
BadConfig
EGL: The EGL configuration is unsupported.
Trait Implementations§
source§impl Clone for WindowingApiError
impl Clone for WindowingApiError
source§fn clone(&self) -> WindowingApiError
fn clone(&self) -> WindowingApiError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more