Skip to main content

euv_core/game/engine3d/quality/
enum.rs

1/// Master AAA graphics quality tier adjustable live at runtime.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
3pub enum QualityPreset {
4    /// Maximum frame rate on low-power mobile GPUs (aggressive LOD, RT off).
5    Low,
6    /// Balanced performance and fidelity (medium draw distance, RT shadows optional).
7    Medium,
8    /// High-resolution desktop & flagship mobile default (PBR + RT shadows).
9    #[default]
10    High,
11    /// Ultra open-world fidelity (RT shadows + reflections, volumetric fog, extended LOD).
12    Ultra,
13    /// Showcase cinematic path-traced GI + full resolution + max draw distance.
14    Cinematic,
15}
16
17/// Target rendering resolution preset coupled with dynamic resolution scaling.
18#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
19pub enum ResolutionPreset {
20    /// 1280x720 HD target.
21    Hd720,
22    /// 1920x1080 Full HD target.
23    #[default]
24    Fhd1080,
25    /// 2560x1440 QHD target.
26    Qhd1440,
27    /// 3840x2160 4K UHD target.
28    Uhd4k,
29}
30
31/// Hardware/BVH ray-tracing pipeline mode adjustable live at runtime.
32#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
33pub enum RayTracingMode {
34    /// Rasterized PBR shading with analytic directional lighting only.
35    Off,
36    /// BVH-accelerated ray-traced directional sun shadows.
37    #[default]
38    ShadowsOnly,
39    /// BVH ray-traced shadows plus glossy/mirror PBR surface reflections.
40    ShadowsAndReflections,
41    /// Full ray-traced shadows, reflections, and hemisphere ambient occlusion / 1-bounce GI.
42    FullPathTracedGi,
43}
44
45/// Spatial or temporal upscaling mode for maintaining high FPS at 4K output.
46#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
47pub enum UpscalerMode {
48    /// Native 1:1 pixel shading without upscaling.
49    Native,
50    /// Edge-preserving spatial upscaling (FSR-style sharpening).
51    #[default]
52    SpatialFsr,
53    /// Temporal accumulation upscaling (TAAU/DLSS-style pipeline).
54    TemporalTaa,
55}
56
57/// Post-processing anti-aliasing mode.
58#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
59pub enum AntiAliasingMode {
60    /// No post-process anti-aliasing.
61    Off,
62    /// Fast approximate edge-smoothing anti-aliasing.
63    #[default]
64    Fxaa,
65    /// Temporal anti-aliasing.
66    Taa,
67}