Function Instance.requestAdapter
Retrieves a new Adapter, asynchronously.
Adapter requestAdapter
(
PowerPreference powerPreference = PowerPreference .undefined,
BackendType backendType = BackendType .undefined,
std .typecons .Flag!("forceFallbackAdapter") forceFallbackAdapter = Flag .no
);
Adapter requestAdapter
(
const(Surface) compatibleSurface,
PowerPreference powerPreference = PowerPreference .undefined,
BackendType backendType = BackendType .undefined,
std .typecons .Flag!("forceFallbackAdapter") forceFallbackAdapter = Flag .no
) @trusted;
Adapter requestAdapter
(
__C .WGPURequestAdapterOptions options
) @trusted;
Some options are “soft”, so treated as non-mandatory. Others are “hard”.
Remarks
Use Adapter
to determine whether an Adapter was successfully requested.