pub struct GpuRendererSettings {
pub power_preference: PowerPreference,
pub clear_colour: [f64; 3],
pub uncapped_present: bool,
}Expand description
Caller-controllable knobs for GpuRenderer::new. Defaults
target “highest-performance GPU, prefer Mailbox/Immediate over
vsync” — i.e. the same configuration the GPU.0 probe used to
measure the FPS ceiling.
Fields§
§power_preference: PowerPreference§clear_colour: [f64; 3]Initial clear colour cycled by GPU.1’s empty render path. The voxel-rendering substages overwrite this entirely.
uncapped_present: boolPrefer mailbox/immediate when offered; falls back to FIFO if the surface only supports it (Wayland under Mesa often does).
Trait Implementations§
Source§impl Clone for GpuRendererSettings
impl Clone for GpuRendererSettings
Source§fn clone(&self) -> GpuRendererSettings
fn clone(&self) -> GpuRendererSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GpuRendererSettings
Source§impl Debug for GpuRendererSettings
impl Debug for GpuRendererSettings
Auto Trait Implementations§
impl Freeze for GpuRendererSettings
impl RefUnwindSafe for GpuRendererSettings
impl Send for GpuRendererSettings
impl Sync for GpuRendererSettings
impl Unpin for GpuRendererSettings
impl UnsafeUnpin for GpuRendererSettings
impl UnwindSafe for GpuRendererSettings
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