pub async fn init_setup_async<G: GraphicsApi>(
device: &WgpuDevice,
options: RuntimeOptions,
) -> WgpuSetupExpand description
Initialize a client on the given device with the given options. This function is useful to configure the runtime options or to pick a different graphics API.
A device pinned to a graphics API comes up on that API: through
AutoGraphicsApi, or through the G naming the same one.
§Panics
Where device pins a graphics API and G names another. The client is
registered under the device’s id, and a pinned id promises its API to
every caller who reaches for that client afterwards.