Type Alias wgpu_core::instance::RequestAdapterOptions

source ·
pub type RequestAdapterOptions = RequestAdapterOptions<SurfaceId>;

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. For WebGL, this is strictly required, as an adapter can not be created without a surface.