Struct wgpu_types::RequestAdapterOptions [−][src]
#[repr(C)]pub struct RequestAdapterOptions<S> { pub power_preference: PowerPreference, pub compatible_surface: Option<S>, }
Expand description
Options for requesting adapter.
Fields
power_preference: PowerPreference
Power preference for the adapter.
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more