Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose context and display from adapter and device for egl gles hal #2860

Merged
merged 1 commit into from
Jul 10, 2022

Conversation

i509VCB
Copy link
Contributor

@i509VCB i509VCB commented Jul 8, 2022

Checklist

  • Run cargo clippy.
  • Run RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown if applicable.
  • Add change to CHANGELOG.md. See simple instructions inside file.

Description
For extensions to wgpu to be able to interface with EGL, the EGLDisplay, EGLContext and version of EGL need to be available from the adapter and device in the gles hal.

This means the existing AdapterContext::raw_context function is now exposed without needing renderdoc to be enabled.

This function also provides access to get_proc_address via exposing EGLInstance.

@i509VCB i509VCB changed the title expose context and display from adapter and device for egl hal expose context and display from adapter and device for egl gles hal Jul 8, 2022
@i509VCB i509VCB force-pushed the egl-adapter-context branch from 823c40f to 0b57522 Compare July 8, 2022 03:00
@i509VCB i509VCB force-pushed the egl-adapter-context branch from 0b57522 to c6edc9c Compare July 8, 2022 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants