From 75519839be7977617396ec1a70f7ac2a023b0e9d Mon Sep 17 00:00:00 2001 From: i509VCB Date: Mon, 25 Jul 2022 22:37:50 -0500 Subject: [PATCH] export `AdapterContext` in Gles hal (#2870) --- CHANGELOG.md | 1 + wgpu-hal/src/gles/mod.rs | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b0b65dab7..4843baf10e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -110,6 +110,7 @@ the same every time it is rendered, we now warn if it is missing. #### Hal - Document safety requirements for `Adapter::from_external` in gles hal by @i509VCB in [#2863](https://github.com/gfx-rs/wgpu/pull/2863) +- Make `AdapterContext` a publicly accessible type in the gles hal by @i509VCB in [#2870](https://github.com/gfx-rs/wgpu/pull/2870) ## wgpu-0.13.1 (2022-07-02) diff --git a/wgpu-hal/src/gles/mod.rs b/wgpu-hal/src/gles/mod.rs index 805eb6b59e..717502f2c6 100644 --- a/wgpu-hal/src/gles/mod.rs +++ b/wgpu-hal/src/gles/mod.rs @@ -69,10 +69,14 @@ mod device; mod queue; #[cfg(any(not(target_arch = "wasm32"), feature = "emscripten"))] -use self::egl::{AdapterContext, Instance, Surface}; +pub use self::egl::{AdapterContext, AdapterContextLock}; +#[cfg(any(not(target_arch = "wasm32"), feature = "emscripten"))] +use self::egl::{Instance, Surface}; #[cfg(all(target_arch = "wasm32", not(feature = "emscripten")))] -use self::web::{AdapterContext, Instance, Surface}; +pub use self::web::AdapterContext; +#[cfg(all(target_arch = "wasm32", not(feature = "emscripten")))] +use self::web::{Instance, Surface}; use arrayvec::ArrayVec;