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 egl display in gles Instance hal #2670

Merged
merged 1 commit into from
May 29, 2022

Conversation

i509VCB
Copy link
Contributor

@i509VCB i509VCB commented May 18, 2022

Description
Exposes some parts of egl's Instance.

The display and the egl version are made public.

The former is needed for using some extensions such as EGL_EXT_image_dma_buf_import. The version is also useful for extensions where a specific version of EGL is required.

Questions

Because the internals of the display are guarded by a mutex, is returning a guard the best solution for access to the display? The raw display is copy, no mutex guard needed.

wgpu-hal/src/gles/egl.rs Outdated Show resolved Hide resolved
wgpu-hal/src/gles/egl.rs Outdated Show resolved Hide resolved
@i509VCB i509VCB requested a review from kvark May 22, 2022 20:57
@cwfitzgerald cwfitzgerald merged commit 2c9c5bb into gfx-rs:master May 29, 2022
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.

3 participants