mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 23:41:01 +01:00
Change `Instance::as_hal<A>` to simply return an `Option<&A::Instance>`, rather than passing it to a callback. We're just borrowing a reference to some `wgpu_hal::Api::Instance` owned by the `wgpu_core::instance::Instance`, so there's no special scoping or locking magic required here.