From 3d1123605e14d7c7c794b656600fbfa9664d4fd4 Mon Sep 17 00:00:00 2001 From: i509VCB Date: Sun, 10 Jul 2022 21:14:11 -0500 Subject: [PATCH] export AdapterContext in Gles hal --- 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 354365126c..9df3c4c1cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,6 +69,7 @@ Bottom level categories: #### 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;