Struct wgpu::RequestAdapterOptionsBase [−][src]
#[repr(C)]pub struct RequestAdapterOptionsBase<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
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<RequestAdapterOptions<S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<RequestAdapterOptions<S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<S> PartialEq<RequestAdapterOptions<S>> for RequestAdapterOptions<S> where
S: PartialEq<S>,
impl<S> PartialEq<RequestAdapterOptions<S>> for RequestAdapterOptions<S> where
S: PartialEq<S>,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Compare self to key
and return true
if they are equal.