#[non_exhaustive]pub struct WgpuRuntimeOptions {
pub backend: WgpuBackendSelection,
pub power_preference: WgpuPowerPreference,
pub request_timestamps: bool,
}Expand description
Explicit headless selection and optional profiling requests.
Defaults preserve existing primary/high-performance/no-timestamp behavior.
Options constructors create an owned runtime independently of WgpuRuntime::shared.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.backend: WgpuBackendSelectionRequested backend set; GL is an explicit opt-in without backend fallback.
power_preference: WgpuPowerPreferenceAdapter power preference within the selected backend set.
request_timestamps: boolRequest timestamp queries when available; unsupported adapters still initialize.
Trait Implementations§
Source§impl Clone for WgpuRuntimeOptions
impl Clone for WgpuRuntimeOptions
Source§fn clone(&self) -> WgpuRuntimeOptions
fn clone(&self) -> WgpuRuntimeOptions
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 WgpuRuntimeOptions
Source§impl Debug for WgpuRuntimeOptions
impl Debug for WgpuRuntimeOptions
Source§impl Default for WgpuRuntimeOptions
impl Default for WgpuRuntimeOptions
Source§fn default() -> WgpuRuntimeOptions
fn default() -> WgpuRuntimeOptions
Returns the “default value” for a type. Read more
impl Eq for WgpuRuntimeOptions
Source§impl PartialEq for WgpuRuntimeOptions
impl PartialEq for WgpuRuntimeOptions
impl StructuralPartialEq for WgpuRuntimeOptions
Auto Trait Implementations§
impl Freeze for WgpuRuntimeOptions
impl RefUnwindSafe for WgpuRuntimeOptions
impl Send for WgpuRuntimeOptions
impl Sync for WgpuRuntimeOptions
impl Unpin for WgpuRuntimeOptions
impl UnsafeUnpin for WgpuRuntimeOptions
impl UnwindSafe for WgpuRuntimeOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more