pub struct RenderSettings {
pub level: Level,
pub num_threads: u16,
pub render_mode: RenderMode,
}Expand description
Settings to apply to the render context.
Fields§
§level: LevelThe SIMD level that should be used for rendering operations.
num_threads: u16The number of worker threads that should be used for rendering. Only has an effect
if the multithreading feature is active.
render_mode: RenderModeWhether to prioritize speed or quality when rendering.
For most cases (especially for real-time rendering), it is highly recommended to set
this to OptimizeSpeed. If accuracy is a more significant concern (for example for visual
regression testing), then you can set this to OptimizeQuality.
Currently, the only difference this makes is that when choosing OptimizeSpeed, rasterization
will happen using u8/u16, while OptimizeQuality will use a f32-based pipeline.
Trait Implementations§
Source§impl Clone for RenderSettings
impl Clone for RenderSettings
Source§fn clone(&self) -> RenderSettings
fn clone(&self) -> RenderSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderSettings
impl Debug for RenderSettings
Source§impl Default for RenderSettings
impl Default for RenderSettings
impl Copy for RenderSettings
Auto Trait Implementations§
impl Freeze for RenderSettings
impl RefUnwindSafe for RenderSettings
impl Send for RenderSettings
impl Sync for RenderSettings
impl Unpin for RenderSettings
impl UnwindSafe for RenderSettings
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