euv_core/game/engine3d/quality/struct.rs
1use super::*;
2
3/// Complete runtime-adjustable AAA 3D rendering, resolution, LOD, streaming, and ray-tracing configuration.
4#[derive(Clone, Copy, Data, Debug, PartialEq)]
5pub struct RenderQualityConfig {
6 /// Active master quality preset.
7 #[get(type(copy))]
8 pub(crate) preset: QualityPreset,
9 /// Target logical output resolution tier.
10 #[get(type(copy))]
11 pub(crate) resolution_preset: ResolutionPreset,
12 /// Internal render resolution multiplier (`0.35..=2.0`).
13 #[get(type(copy))]
14 pub(crate) resolution_scale: f32,
15 /// Enables automatic dynamic resolution scaling (DRS) toward `target_fps`.
16 #[get(type(copy))]
17 pub(crate) dynamic_resolution: bool,
18 /// Target frame rate budget for DRS (`60.0` or `120.0`).
19 #[get(type(copy))]
20 pub(crate) target_fps: f32,
21 /// Active BVH ray-tracing pipeline tier.
22 #[get(type(copy))]
23 pub(crate) ray_tracing: RayTracingMode,
24 /// Maximum ray-traced reflection bounce depth (`0..=3`).
25 #[get(type(copy))]
26 pub(crate) reflection_bounces: u8,
27 /// Upscaler pipeline selection.
28 #[get(type(copy))]
29 pub(crate) upscaler: UpscalerMode,
30 /// Post-process anti-aliasing mode.
31 #[get(type(copy))]
32 pub(crate) anti_aliasing: AntiAliasingMode,
33 /// Maximum open-world draw distance in meters.
34 #[get(type(copy))]
35 pub(crate) draw_distance: f32,
36 /// LOD bias multiplier (`< 1.0` higher detail, `> 1.0` faster aggressive LOD).
37 #[get(type(copy))]
38 pub(crate) lod_bias: f32,
39 /// Enables 6-plane hierarchical view-frustum culling.
40 #[get(type(copy))]
41 pub(crate) frustum_culling: bool,
42 /// Enables distance-based open-world chunk streaming.
43 #[get(type(copy))]
44 pub(crate) chunk_streaming: bool,
45 /// Enables atmospheric height & distance volumetric fog.
46 #[get(type(copy))]
47 pub(crate) volumetric_fog: bool,
48 /// Enables GPU instancing batch deduplication.
49 #[get(type(copy))]
50 pub(crate) gpu_instancing: bool,
51}