pub struct Device { /* private fields */ }
Available on
egl_backend
only.Expand description
Wrapper for EGLDevice
.
Implementations§
source§impl Device
impl Device
sourcepub fn query_devices() -> Result<impl Iterator<Item = Device>>
pub fn query_devices() -> Result<impl Iterator<Item = Device>>
Query the available devices.
This function returns Err
if the EGL_EXT_device_query
and
EGL_EXT_device_enumeration
or EGL_EXT_device_base
extensions are
not available.
sourcepub fn extensions(&self) -> &HashSet<&str>
pub fn extensions(&self) -> &HashSet<&str>
Get the device extensions supported by this device.
These extensions are distinct from the display extensions and should not be used interchangeably.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
Get the name of the device.
This function will return None
if the EGL_EXT_device_query_name
device extension is not available.
sourcepub fn vendor(&self) -> Option<&str>
pub fn vendor(&self) -> Option<&str>
Get the vendor of the device.
This function will return None
if the EGL_EXT_device_query_name
device extension is not available.
sourcepub fn raw_device(&self) -> *const c_void
pub fn raw_device(&self) -> *const c_void
Get a raw handle to the EGLDevice
.
Trait Implementations§
source§impl PartialEq<Device> for Device
impl PartialEq<Device> for Device
impl Eq for Device
impl Send for Device
impl StructuralEq for Device
impl StructuralPartialEq for Device
impl Sync for Device
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more