Skip to main content

euv_core/platform/backend/
enum.rs

1use super::*;
2
3/// Unified error type returned by cross-platform OS window and rendering operations.
4#[derive(Clone, Debug, Eq, PartialEq)]
5pub enum PlatformError {
6    /// Referenced window handle does not exist or was closed.
7    WindowNotFound(u64),
8    /// Native OS API initialization or resource creation failed.
9    InitializationFailed(String),
10    /// Surface presentation or GPU submission failed.
11    SurfaceError(String),
12    /// Requested operation is unsupported on the active platform.
13    Unsupported(String),
14}
15
16/// Hardware GPU offscreen scene render pass rendered into the compositor's resident `external_tex` before UI compositing.
17#[derive(Clone, Debug, PartialEq)]
18pub enum DirectGpuScenePass {
19    /// Photorealistic 8-wave Gerstner ocean, storm sky, PBF wake foam, and 3D origami paper boat pass.
20    OceanFluid(Box<GpuOceanScenePass>),
21    /// Hardware Z-buffered instanced 3D PBR open-world city and atmospheric sky dome pass.
22    World3d(Box<GpuWorld3dScenePass>),
23}