flo_render/offscreen/
error.rs

1#[allow(dead_code)]
2
3///
4/// Errors that can happen when trying to initialise the renderer
5///
6#[derive(Clone, Debug, PartialEq)]
7pub enum RenderInitError {
8    /// The required rendering API is not available
9    ApiNotAvailable,
10
11    /// Indicates that the graphics device could not be opened
12    CannotOpenGraphicsDevice,
13
14    /// Indicates that the graphics device could not be attached to
15    CannotCreateGraphicsDevice,
16
17    /// The graphics driver failed to initialise
18    CannotStartGraphicsDriver,
19
20    /// The graphics display is not available
21    DisplayNotAvailable,
22
23    /// A required extension was missing
24    MissingRequiredExtension,
25
26    /// Unable to configure the display
27    CouldNotConfigureDisplay,
28
29    /// The context failed to create
30    CouldNotCreateContext,
31
32    /// The render surface failed to create
33    CouldNotCreateSurface,
34
35    /// Could not set the active context
36    ContextDidNotStart
37}