pub enum MetalTranscodeError {
MetalUnavailable,
UnsupportedJob(&'static str),
Runtime(MetalRuntimeFailure),
MetalSupport {
operation: &'static str,
source: MetalSupportError,
},
Kernel(&'static str),
HostAllocationTooLarge {
requested: usize,
cap: usize,
what: &'static str,
},
HostAllocationFailed {
requested: usize,
what: &'static str,
},
DeviceAllocationTooLarge {
requested: usize,
cap: usize,
what: &'static str,
},
DeviceAllocationFailed {
requested: usize,
what: &'static str,
},
}Expand description
Error returned by the Metal transcode accelerator.
Variants§
Metal is unavailable on this host or target.
UnsupportedJob(&'static str)
The request is outside the current Metal implementation.
Runtime(MetalRuntimeFailure)
Metal runtime creation or device execution failed with its diagnostic retained.
MetalSupport
A shared Metal resource operation failed with its typed source retained.
Fields
§
source: MetalSupportErrorTyped shared-support failure.
Kernel(&'static str)
A validated Metal result violated an internal kernel contract.
HostAllocationTooLarge
A codec-owned host allocation exceeds the transcode safety limit.
Fields
HostAllocationFailed
A bounded codec-owned host allocation could not be reserved.
DeviceAllocationTooLarge
A codec-owned Metal allocation exceeds the shared transcode safety limit.
Fields
DeviceAllocationFailed
Metal returned no buffer for a bounded device allocation.
Trait Implementations§
Source§impl Debug for MetalTranscodeError
impl Debug for MetalTranscodeError
Source§impl Display for MetalTranscodeError
impl Display for MetalTranscodeError
Source§impl Error for MetalTranscodeError
impl Error for MetalTranscodeError
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<MetalTranscodeError> for TranscodeStageError
impl From<MetalTranscodeError> for TranscodeStageError
Source§fn from(error: MetalTranscodeError) -> Self
fn from(error: MetalTranscodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MetalTranscodeError
impl !UnwindSafe for MetalTranscodeError
impl Freeze for MetalTranscodeError
impl Send for MetalTranscodeError
impl Sync for MetalTranscodeError
impl Unpin for MetalTranscodeError
impl UnsafeUnpin for MetalTranscodeError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more