pub struct RenderQualityConfig { /* private fields */ }Expand description
Complete runtime-adjustable AAA 3D rendering, resolution, LOD, streaming, and ray-tracing configuration.
Implementations§
Source§impl RenderQualityConfig
Preset builders and live dynamic resolution scaling for RenderQualityConfig.
impl RenderQualityConfig
Preset builders and live dynamic resolution scaling for RenderQualityConfig.
Sourcepub fn from_preset(preset: QualityPreset) -> Self
pub fn from_preset(preset: QualityPreset) -> Self
Sourcepub fn adjust_dynamic_resolution(&mut self, frame_ms: f32)
pub fn adjust_dynamic_resolution(&mut self, frame_ms: f32)
Dynamically adapts resolution_scale based on measured frame_ms when DRS is enabled.
§Arguments
&Self- Mutable configuration.f32- Measured render duration of the previous frame in milliseconds.
Source§impl RenderQualityConfig
impl RenderQualityConfig
pub fn get_preset(&self) -> QualityPreset
pub fn get_mut_preset(&mut self) -> &mut QualityPreset
pub fn set_preset(&mut self, val: QualityPreset) -> &mut Self
pub fn get_resolution_preset(&self) -> ResolutionPreset
pub fn get_mut_resolution_preset(&mut self) -> &mut ResolutionPreset
pub fn set_resolution_preset(&mut self, val: ResolutionPreset) -> &mut Self
pub fn get_resolution_scale(&self) -> f32
pub fn get_mut_resolution_scale(&mut self) -> &mut f32
pub fn set_resolution_scale(&mut self, val: f32) -> &mut Self
pub fn get_dynamic_resolution(&self) -> bool
pub fn get_mut_dynamic_resolution(&mut self) -> &mut bool
pub fn set_dynamic_resolution(&mut self, val: bool) -> &mut Self
pub fn get_target_fps(&self) -> f32
pub fn get_mut_target_fps(&mut self) -> &mut f32
pub fn set_target_fps(&mut self, val: f32) -> &mut Self
pub fn get_ray_tracing(&self) -> RayTracingMode
pub fn get_mut_ray_tracing(&mut self) -> &mut RayTracingMode
pub fn set_ray_tracing(&mut self, val: RayTracingMode) -> &mut Self
pub fn get_reflection_bounces(&self) -> u8
pub fn get_mut_reflection_bounces(&mut self) -> &mut u8
pub fn set_reflection_bounces(&mut self, val: u8) -> &mut Self
pub fn get_upscaler(&self) -> UpscalerMode
pub fn get_mut_upscaler(&mut self) -> &mut UpscalerMode
pub fn set_upscaler(&mut self, val: UpscalerMode) -> &mut Self
pub fn get_anti_aliasing(&self) -> AntiAliasingMode
pub fn get_mut_anti_aliasing(&mut self) -> &mut AntiAliasingMode
pub fn set_anti_aliasing(&mut self, val: AntiAliasingMode) -> &mut Self
pub fn get_draw_distance(&self) -> f32
pub fn get_mut_draw_distance(&mut self) -> &mut f32
pub fn set_draw_distance(&mut self, val: f32) -> &mut Self
pub fn get_lod_bias(&self) -> f32
pub fn get_mut_lod_bias(&mut self) -> &mut f32
pub fn set_lod_bias(&mut self, val: f32) -> &mut Self
pub fn get_frustum_culling(&self) -> bool
pub fn get_mut_frustum_culling(&mut self) -> &mut bool
pub fn set_frustum_culling(&mut self, val: bool) -> &mut Self
pub fn get_chunk_streaming(&self) -> bool
pub fn get_mut_chunk_streaming(&mut self) -> &mut bool
pub fn set_chunk_streaming(&mut self, val: bool) -> &mut Self
pub fn get_volumetric_fog(&self) -> bool
pub fn get_mut_volumetric_fog(&mut self) -> &mut bool
pub fn set_volumetric_fog(&mut self, val: bool) -> &mut Self
pub fn get_gpu_instancing(&self) -> bool
pub fn get_mut_gpu_instancing(&mut self) -> &mut bool
pub fn set_gpu_instancing(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for RenderQualityConfig
impl Clone for RenderQualityConfig
impl Copy for RenderQualityConfig
Source§impl Debug for RenderQualityConfig
impl Debug for RenderQualityConfig
Source§impl Default for RenderQualityConfig
Default High AAA quality configuration with BVH ray-traced shadows and DRS enabled.
impl Default for RenderQualityConfig
Default High AAA quality configuration with BVH ray-traced shadows and DRS enabled.
Source§impl PartialEq for RenderQualityConfig
impl PartialEq for RenderQualityConfig
impl StructuralPartialEq for RenderQualityConfig
Auto Trait Implementations§
impl Forget for RenderQualityConfig
impl Freeze for RenderQualityConfig
impl Move for RenderQualityConfig
impl RefUnwindSafe for RenderQualityConfig
impl Send for RenderQualityConfig
impl Sync for RenderQualityConfig
impl Unpin for RenderQualityConfig
impl UnsafeUnpin for RenderQualityConfig
impl UnwindSafe for RenderQualityConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more