Type Alias wgpu::core::instance::RequestAdapterOptions
source · pub type RequestAdapterOptions = RequestAdapterOptions<Id<Surface>>;
Aliased Type§
struct RequestAdapterOptions {
pub power_preference: PowerPreference,
pub force_fallback_adapter: bool,
pub compatible_surface: Option<Id<Surface>>,
}
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<Id<Surface>>
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.