pub struct LevelZeroDevice { /* private fields */ }Expand description
An Intel GPU device accessed via the Level Zero API.
On non-Linux/Windows platforms, LevelZeroDevice::new always returns
LevelZeroError::UnsupportedPlatform.
Implementations§
Source§impl LevelZeroDevice
impl LevelZeroDevice
Sourcepub fn new() -> LevelZeroResult<Self>
pub fn new() -> LevelZeroResult<Self>
Open the first Intel GPU found via the Level Zero loader.
Returns LevelZeroError::UnsupportedPlatform on macOS.
Trait Implementations§
Source§impl Debug for LevelZeroDevice
impl Debug for LevelZeroDevice
Source§impl Drop for LevelZeroDevice
impl Drop for LevelZeroDevice
impl Send for LevelZeroDevice
impl Sync for LevelZeroDevice
Auto Trait Implementations§
impl Freeze for LevelZeroDevice
impl RefUnwindSafe for LevelZeroDevice
impl Unpin for LevelZeroDevice
impl UnsafeUnpin for LevelZeroDevice
impl UnwindSafe for LevelZeroDevice
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