Struct wgpu_types::RequestAdapterOptions
source · [−]#[repr(C)]pub struct RequestAdapterOptions<S> {
pub power_preference: PowerPreference,
pub force_fallback_adapter: bool,
pub compatible_surface: Option<S>,
}
Expand description
Options for requesting adapter.
Corresponds to WebGPU GPURequestAdapterOptions
.
Fields
power_preference: PowerPreference
Power preference for the adapter.
force_fallback_adapter: bool
Indicates that only a fallback adapter can be returned. This is generally a “software” implementation on the system.
compatible_surface: Option<S>
Surface that is required to be presentable with the requested adapter. This does not create the surface, only guarantees that the adapter can present to said surface.
Trait Implementations
sourceimpl<S: Clone> Clone for RequestAdapterOptions<S>
impl<S: Clone> Clone for RequestAdapterOptions<S>
sourcefn clone(&self) -> RequestAdapterOptions<S>
fn clone(&self) -> RequestAdapterOptions<S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<S: Debug> Debug for RequestAdapterOptions<S>
impl<S: Debug> Debug for RequestAdapterOptions<S>
sourceimpl<S> Default for RequestAdapterOptions<S>
impl<S> Default for RequestAdapterOptions<S>
sourceimpl<S: Hash> Hash for RequestAdapterOptions<S>
impl<S: Hash> Hash for RequestAdapterOptions<S>
sourceimpl<S: PartialEq> PartialEq<RequestAdapterOptions<S>> for RequestAdapterOptions<S>
impl<S: PartialEq> PartialEq<RequestAdapterOptions<S>> for RequestAdapterOptions<S>
sourcefn eq(&self, other: &RequestAdapterOptions<S>) -> bool
fn eq(&self, other: &RequestAdapterOptions<S>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RequestAdapterOptions<S>) -> bool
fn ne(&self, other: &RequestAdapterOptions<S>) -> bool
This method tests for !=
.
impl<S: Eq> Eq for RequestAdapterOptions<S>
impl<S> StructuralEq for RequestAdapterOptions<S>
impl<S> StructuralPartialEq for RequestAdapterOptions<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for RequestAdapterOptions<S> where
S: RefUnwindSafe,
impl<S> Send for RequestAdapterOptions<S> where
S: Send,
impl<S> Sync for RequestAdapterOptions<S> where
S: Sync,
impl<S> Unpin for RequestAdapterOptions<S> where
S: Unpin,
impl<S> UnwindSafe for RequestAdapterOptions<S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more