pub enum IOSurfaceMetalError {
InvalidPlane {
plane_index: usize,
plane_count: usize,
},
UnsupportedPixelFormat {
fourcc: u32,
plane_index: usize,
},
EmptyPlane {
plane_index: usize,
width: usize,
height: usize,
bytes_per_row: usize,
},
IncompatiblePlaneLayout {
plane_index: usize,
bytes_per_row: usize,
minimum_bytes_per_row: usize,
},
IntegerOutOfRange {
field: &'static str,
value: usize,
},
NativeCreationFailed,
}Available on crate feature
iosurface only.Expand description
Re-exports the Metal framework surface for this item.
Errors returned while creating an IOSurface-backed texture.
Variants§
InvalidPlane
The requested plane does not exist for this surface.
UnsupportedPixelFormat
The surface format and plane do not map to a supported Metal format.
EmptyPlane
The selected plane has zero dimensions or row stride.
IncompatiblePlaneLayout
The plane row stride cannot contain its selected Metal format.
IntegerOutOfRange
Plane metadata cannot be represented by the native bridge.
NativeCreationFailed
Metal rejected the validated IOSurface texture descriptor.
Trait Implementations§
Source§impl Clone for IOSurfaceMetalError
impl Clone for IOSurfaceMetalError
Source§fn clone(&self) -> IOSurfaceMetalError
fn clone(&self) -> IOSurfaceMetalError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IOSurfaceMetalError
impl Debug for IOSurfaceMetalError
Source§impl Display for IOSurfaceMetalError
impl Display for IOSurfaceMetalError
impl Eq for IOSurfaceMetalError
Source§impl Error for IOSurfaceMetalError
impl Error for IOSurfaceMetalError
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 PartialEq for IOSurfaceMetalError
impl PartialEq for IOSurfaceMetalError
impl StructuralPartialEq for IOSurfaceMetalError
Auto Trait Implementations§
impl Freeze for IOSurfaceMetalError
impl RefUnwindSafe for IOSurfaceMetalError
impl Send for IOSurfaceMetalError
impl Sync for IOSurfaceMetalError
impl Unpin for IOSurfaceMetalError
impl UnsafeUnpin for IOSurfaceMetalError
impl UnwindSafe for IOSurfaceMetalError
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