pub struct HeadlessOptions {
pub backend_hint: Option<String>,
pub expect_adapter: Option<String>,
pub expect_backend: Option<String>,
}Expand description
How a HeadlessRenderer should pick, and then verify, its GPU.
Fields§
§backend_hint: Option<String>Backend(s) to restrict adapter enumeration to, as a comma-separated
list (vulkan, metal, dx12, gl, vulkan,metal, …).
A hint: WGPU_BACKEND wins when it is set, so an operator can pin the
backend of a run without editing the caller.
expect_adapter: Option<String>Adapter name the resolved adapter must match (case-insensitive
substring). Overrides GOLDEN_EXPECT_ADAPTER_ENV_VAR when set.
expect_backend: Option<String>Backend the resolved adapter must be on (case-insensitive, whole word).
Overrides GOLDEN_EXPECT_BACKEND_ENV_VAR when set.
Trait Implementations§
Source§impl Clone for HeadlessOptions
impl Clone for HeadlessOptions
Source§impl Debug for HeadlessOptions
impl Debug for HeadlessOptions
Source§impl Default for HeadlessOptions
impl Default for HeadlessOptions
impl Eq for HeadlessOptions
Source§impl PartialEq for HeadlessOptions
impl PartialEq for HeadlessOptions
impl StructuralPartialEq 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.