pub struct HeadlessOptions {
pub width: u32,
pub height: u32,
pub prefer_software: bool,
}Expand description
How to build a headless Renderer for capture (Plan 0013).
Deliberately carries no tier: Renderer::new_headless is
Tier::Floor by construction, which is what keeps every golden baseline
byte-reproducible (ADR-0045). A capture at another tier goes through
Renderer::new_headless_tiered, where the choice is written at the call
site and cannot be reached by forgetting a field.
Fields§
§width: u32Offscreen render width in pixels.
height: u32Offscreen render height in pixels.
prefer_software: boolForce a fallback (software) adapter — WARP on DX12 — so captures rasterize identically across machines. Tests want this on.
Trait Implementations§
Source§impl Clone for HeadlessOptions
impl Clone for HeadlessOptions
Source§fn clone(&self) -> HeadlessOptions
fn clone(&self) -> HeadlessOptions
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 moreSource§impl Debug for HeadlessOptions
impl Debug for HeadlessOptions
impl Copy for HeadlessOptions
Auto Trait Implementations§
impl Freeze for HeadlessOptions
impl RefUnwindSafe for HeadlessOptions
impl Send for HeadlessOptions
impl Sync for HeadlessOptions
impl Unpin for HeadlessOptions
impl UnsafeUnpin for HeadlessOptions
impl UnwindSafe for HeadlessOptions
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