Skip to content

Commit 7551983

Browse files
authored
export AdapterContext in Gles hal (#2870)
1 parent 7b48768 commit 7551983

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ the same every time it is rendered, we now warn if it is missing.
110110
#### Hal
111111

112112
- Document safety requirements for `Adapter::from_external` in gles hal by @i509VCB in [#2863](https://github.com/gfx-rs/wgpu/pull/2863)
113+
- Make `AdapterContext` a publicly accessible type in the gles hal by @i509VCB in [#2870](https://github.com/gfx-rs/wgpu/pull/2870)
113114

114115
## wgpu-0.13.1 (2022-07-02)
115116

wgpu-hal/src/gles/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,14 @@ mod device;
6969
mod queue;
7070

7171
#[cfg(any(not(target_arch = "wasm32"), feature = "emscripten"))]
72-
use self::egl::{AdapterContext, Instance, Surface};
72+
pub use self::egl::{AdapterContext, AdapterContextLock};
73+
#[cfg(any(not(target_arch = "wasm32"), feature = "emscripten"))]
74+
use self::egl::{Instance, Surface};
7375

7476
#[cfg(all(target_arch = "wasm32", not(feature = "emscripten")))]
75-
use self::web::{AdapterContext, Instance, Surface};
77+
pub use self::web::AdapterContext;
78+
#[cfg(all(target_arch = "wasm32", not(feature = "emscripten")))]
79+
use self::web::{Instance, Surface};
7680

7781
use arrayvec::ArrayVec;
7882

0 commit comments

Comments
 (0)