pub struct RenderConfig { /* private fields */ }Expand description
Complete rendering pipeline configuration shared across all 7 platforms.
Implementations§
Source§impl RenderConfig
Fluent builder helpers for RenderConfig.
impl RenderConfig
Fluent builder helpers for RenderConfig.
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 hybrid() -> Self
pub fn hybrid() -> Self
Creates a hybrid CPU-tile + GPU-compositor rendering configuration.
§Returns
Self- Hybrid-modeRenderConfig.
Sourcepub fn preferred_backend_value(&self) -> Option<GraphicsBackend>
pub fn preferred_backend_value(&self) -> Option<GraphicsBackend>
Source§impl RenderConfig
impl RenderConfig
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_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
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, VSync, AnalyticalSdf, dirty rects enabled).
impl Default for RenderConfig
Default rendering configuration (Auto, VSync, AnalyticalSdf, dirty rects enabled).
impl Eq for RenderConfig
Source§impl Hash for RenderConfig
impl Hash for RenderConfig
Source§impl PartialEq for RenderConfig
impl PartialEq for RenderConfig
impl StructuralPartialEq for RenderConfig
Auto Trait Implementations§
impl Forget for RenderConfig
impl Freeze for RenderConfig
impl Move for RenderConfig
impl RefUnwindSafe for RenderConfig
impl Send for RenderConfig
impl Sync for RenderConfig
impl Unpin for RenderConfig
impl UnsafeUnpin for RenderConfig
impl UnwindSafe for RenderConfig
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