pub struct RenderConfig { /* private fields */ }Expand description
Complete rendering pipeline configuration shared across all target platforms.
Implementations§
Source§impl RenderConfig
Fluent builder helpers for RenderConfig.
impl RenderConfig
Fluent builder helpers for RenderConfig.
Sourcepub fn software_reference() -> Self
pub fn software_reference() -> Self
Creates an explicit deterministic CPU software reference configuration for headless and visual-parity tests.
§Returns
Self- Deterministic CPU referenceRenderConfig.
Sourcepub fn hardware_direct() -> Self
pub fn hardware_direct() -> Self
Creates a hardware GPU direct-draw configuration skipping steady-state CPU RGBA mirror generation.
§Returns
Self- Direct-draw hardware-modeRenderConfig.
Sourcepub fn with_direct_gpu_present(self, enabled: bool) -> Self
pub fn with_direct_gpu_present(self, enabled: bool) -> Self
Sourcepub fn with_max_fps(self, max_fps: Option<u32>) -> Self
pub fn with_max_fps(self, max_fps: Option<u32>) -> Self
Sourcepub fn max_fps_limit(&self) -> Option<u32>
pub fn max_fps_limit(&self) -> Option<u32>
Sourcepub fn with_max_frames_in_flight(self, max_frames_in_flight: u32) -> Self
pub fn with_max_frames_in_flight(self, max_frames_in_flight: u32) -> Self
Sourcepub fn hybrid() -> Self
pub fn hybrid() -> Self
Creates a hybrid CPU-tile + GPU-compositor rendering configuration.
§Returns
Self- Hybrid-modeRenderConfig.
Sourcepub fn adaptive() -> Self
pub fn adaptive() -> Self
Creates a GPU-first adaptive rendering configuration starting in shadow RecommendOnly mode.
§Returns
Self- Adaptive GPU-firstRenderConfigwith direct GPU presentation enabled.
Sourcepub fn adaptive_auto_switch() -> Self
pub fn adaptive_auto_switch() -> Self
Creates a GPU-first adaptive rendering configuration with live frame-boundary AutoSwitch enabled.
§Returns
Self- Adaptive GPU-firstRenderConfigwithAutoSwitchenabled.
Sourcepub fn with_adaptive_switch_mode(self, mode: AdaptiveSwitchMode) -> Self
pub fn with_adaptive_switch_mode(self, mode: AdaptiveSwitchMode) -> Self
Sourcepub fn resolve_direct_gpu_present(
&self,
candidate: RenderBackendCandidate,
) -> bool
pub fn resolve_direct_gpu_present( &self, candidate: RenderBackendCandidate, ) -> bool
Sourcepub fn preferred_backend_value(&self) -> Option<GraphicsBackend>
pub fn preferred_backend_value(&self) -> Option<GraphicsBackend>
Source§impl RenderConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
impl RenderConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_mode(&self) -> RenderMode
pub fn get_mut_mode(&mut self) -> &mut RenderMode
pub fn set_mode(&mut self, val: RenderMode) -> &mut Self
pub fn get_mut_preferred_backend(&mut self) -> &mut Option<GraphicsBackend>
pub fn set_preferred_backend( &mut self, val: Option<GraphicsBackend>, ) -> &mut Self
pub fn get_present_mode(&self) -> PresentMode
pub fn get_mut_present_mode(&mut self) -> &mut PresentMode
pub fn set_present_mode(&mut self, val: PresentMode) -> &mut Self
pub fn get_antialiasing(&self) -> AntialiasingMode
pub fn get_mut_antialiasing(&mut self) -> &mut AntialiasingMode
pub fn set_antialiasing(&mut self, val: AntialiasingMode) -> &mut Self
pub fn get_color_space(&self) -> ColorSpace
pub fn get_mut_color_space(&mut self) -> &mut ColorSpace
pub fn set_color_space(&mut self, val: ColorSpace) -> &mut Self
pub fn get_dirty_rect_optimization(&self) -> bool
pub fn get_mut_dirty_rect_optimization(&mut self) -> &mut bool
pub fn set_dirty_rect_optimization(&mut self, val: bool) -> &mut Self
pub fn get_tile_size(&self) -> u32
pub fn get_mut_tile_size(&mut self) -> &mut u32
pub fn set_tile_size(&mut self, val: u32) -> &mut Self
pub fn get_max_fps(&self) -> u32
pub fn get_mut_max_fps(&mut self) -> &mut u32
pub fn set_max_fps(&mut self, val: u32) -> &mut Self
pub fn get_max_frames_in_flight(&self) -> u32
pub fn get_mut_max_frames_in_flight(&mut self) -> &mut u32
pub fn set_max_frames_in_flight(&mut self, val: u32) -> &mut Self
pub fn get_hdr(&self) -> bool
pub fn get_mut_hdr(&mut self) -> &mut bool
pub fn set_hdr(&mut self, val: bool) -> &mut Self
pub fn get_direct_gpu_present(&self) -> bool
pub fn get_mut_direct_gpu_present(&mut self) -> &mut bool
pub fn set_direct_gpu_present(&mut self, val: bool) -> &mut Self
pub fn get_adaptive_switch_mode(&self) -> AdaptiveSwitchMode
pub fn get_mut_adaptive_switch_mode(&mut self) -> &mut AdaptiveSwitchMode
pub fn set_adaptive_switch_mode(&mut self, val: AdaptiveSwitchMode) -> &mut Self
Trait Implementations§
Source§impl Clone for RenderConfig
impl Clone for RenderConfig
impl Copy for RenderConfig
Source§impl Debug for RenderConfig
impl Debug for RenderConfig
Source§impl Default for RenderConfig
Default rendering configuration (Auto hardware-first, VSync, AnalyticalSdf, uncapped FPS, max_frames_in_flight = 1).
impl Default for RenderConfig
Default rendering configuration (Auto hardware-first, VSync, AnalyticalSdf, uncapped FPS, max_frames_in_flight = 1).