[][src]Struct wgpu::RequestAdapterOptionsBase

#[repr(C)]pub struct RequestAdapterOptionsBase<S> {
    pub power_preference: PowerPreference,
    pub compatible_surface: Option<S>,
}

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

impl<S> Clone for RequestAdapterOptions<S> where
    S: Clone
[src]

impl<S> Debug for RequestAdapterOptions<S> where
    S: Debug
[src]

impl<S> Default for RequestAdapterOptions<S>[src]

impl<'de, S> Deserialize<'de> for RequestAdapterOptions<S> where
    S: Deserialize<'de>, 
[src]

impl<S> Eq for RequestAdapterOptions<S> where
    S: Eq
[src]

impl<S> Hash for RequestAdapterOptions<S> where
    S: Hash
[src]

impl<S> PartialEq<RequestAdapterOptions<S>> for RequestAdapterOptions<S> where
    S: PartialEq<S>, 
[src]

impl<S> Serialize for RequestAdapterOptions<S> where
    S: Serialize
[src]

impl<S> StructuralEq for RequestAdapterOptions<S>[src]

impl<S> StructuralPartialEq for RequestAdapterOptions<S>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.