mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-10-30 05:51:42 +00:00
Expose egl_config (#3907)
This commit is contained in:
parent
234dea18c4
commit
9ab44e6ff6
@ -630,6 +630,13 @@ impl Instance {
|
||||
.expect("Could not lock instance. This is most-likely a deadlock.")
|
||||
.version
|
||||
}
|
||||
|
||||
pub fn egl_config(&self) -> khronos_egl::Config {
|
||||
self.inner
|
||||
.try_lock()
|
||||
.expect("Could not lock instance. This is most-likely a deadlock.")
|
||||
.config
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl Send for Instance {}
|
||||
|
Loading…
Reference in New Issue
Block a user