Skip to content

Commit

Permalink
export AdapterContext in Gles hal (gfx-rs#2870)
Browse files Browse the repository at this point in the history
  • Loading branch information
i509VCB authored Jul 26, 2022
1 parent 7b48768 commit 7551983
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
8 changes: 6 additions & 2 deletions wgpu-hal/src/gles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7551983

Please sign in to comment.