pub enum LevelZeroError {
UnsupportedPlatform,
LibraryNotFound(String),
ZeError(u32, String),
NoSuitableDevice,
OutOfMemory,
ShaderError(String),
CommandListError(String),
NotInitialized,
Unsupported(String),
InvalidArgument(String),
}Expand description
Errors specific to the Level Zero compute backend.
Variants§
UnsupportedPlatform
Level Zero requires Linux or Windows.
LibraryNotFound(String)
The Level Zero loader library could not be found or loaded.
ZeError(u32, String)
A Level Zero API call returned a non-success result code.
NoSuitableDevice
No Intel GPU device was found on this system.
OutOfMemory
Device ran out of memory during allocation.
ShaderError(String)
A SPIR-V shader module error occurred.
CommandListError(String)
An error occurred while operating on a command list.
NotInitialized
The backend has not been initialized yet.
Unsupported(String)
The requested operation is not supported.
InvalidArgument(String)
An invalid argument was passed.
Trait Implementations§
Source§impl Debug for LevelZeroError
impl Debug for LevelZeroError
Source§impl Display for LevelZeroError
impl Display for LevelZeroError
Source§impl Error for LevelZeroError
impl Error for LevelZeroError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<LevelZeroError> for BackendError
impl From<LevelZeroError> for BackendError
Source§fn from(e: LevelZeroError) -> Self
fn from(e: LevelZeroError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LevelZeroError
impl RefUnwindSafe for LevelZeroError
impl Send for LevelZeroError
impl Sync for LevelZeroError
impl Unpin for LevelZeroError
impl UnsafeUnpin for LevelZeroError
impl UnwindSafe for LevelZeroError
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