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 tier (PBR + RT shadows + optional DRS).
9    High,
10    /// Ultra lossless native-resolution fidelity default (native 1:1 pixels, RT shadows + reflections, VSM, Lumen, volumetric fog).
11    #[default]
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    Fhd1080,
24    /// 2560x1440 QHD target.
25    Qhd1440,
26    /// 3840x2160 4K UHD target.
27    #[default]
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 lossless physical-pixel shading without downscaling.
49    #[default]
50    Native,
51    /// Edge-preserving spatial upscaling (FSR-style sharpening).
52    SpatialFsr,
53    /// Temporal accumulation upscaling (TAAU/DLSS-style pipeline).
54    TemporalTaa,
55    /// UE5-class Temporal Super Resolution upscaling with analytical motion vectors and RCAS sharpening.
56    Tsr,
57}
58
59/// Post-processing anti-aliasing mode.
60#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
61pub enum AntiAliasingMode {
62    /// No post-process anti-aliasing.
63    Off,
64    /// Fast approximate edge-smoothing anti-aliasing.
65    #[default]
66    Fxaa,
67    /// Temporal anti-aliasing.
68    Taa,
69    /// UE5-class Temporal Super Resolution anti-aliasing and sub-pixel reconstruction.
70    Tsr,
71}