mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-26 17:31:05 +01:00
Expose egl_config (#3907)
This commit is contained in:
1 parent
234dea18c4
commit
9ab44e6ff6
1 file changed
+7
@@ -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 {}
|
||||
|
||||
Reference in new issue
Block a user