pub enum D3d11VideoCompositorError {
Show 16 variants
Windows(Error),
InvalidOutputDimensions {
width: u32,
height: u32,
},
InvalidFrameRate(Rational),
InvalidLayerDimensions {
width: u32,
height: u32,
},
InvalidOpacity(f32),
InvalidInputDimensions {
width: u32,
height: u32,
},
ScaledLayerTooLarge {
width: u32,
height: u32,
},
SourceRemoved,
UnsupportedFormat(Pixel),
InvalidD3d11Frame,
UnsupportedTextureFormat(DXGI_FORMAT),
InvalidArrayIndex {
index: isize,
array_size: u32,
},
FrameExceedsTexture {
frame_width: u32,
frame_height: u32,
texture_width: u32,
texture_height: u32,
},
DeviceMismatch,
UnsupportedBuffer(&'static str),
SeekUnsupported,
}Available on Windows and crate feature
d3d11 only.Expand description
Errors specific to D3d11VideoCompositor.
Variants§
Windows(Error)
InvalidOutputDimensions
InvalidFrameRate(Rational)
InvalidLayerDimensions
InvalidOpacity(f32)
InvalidInputDimensions
ScaledLayerTooLarge
SourceRemoved
UnsupportedFormat(Pixel)
InvalidD3d11Frame
UnsupportedTextureFormat(DXGI_FORMAT)
InvalidArrayIndex
FrameExceedsTexture
DeviceMismatch
UnsupportedBuffer(&'static str)
SeekUnsupported
Trait Implementations§
Source§impl Debug for D3d11VideoCompositorError
impl Debug for D3d11VideoCompositorError
Source§impl Display for D3d11VideoCompositorError
impl Display for D3d11VideoCompositorError
Source§impl Error for D3d11VideoCompositorError
impl Error for D3d11VideoCompositorError
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<D3d11VideoCompositorError> for D3d11TextLayerError
impl From<D3d11VideoCompositorError> for D3d11TextLayerError
Source§fn from(source: D3d11VideoCompositorError) -> Self
fn from(source: D3d11VideoCompositorError) -> Self
Converts to this type from the input type.
Source§impl From<D3d11VideoCompositorError> for Error
impl From<D3d11VideoCompositorError> for Error
Source§fn from(source: D3d11VideoCompositorError) -> Self
fn from(source: D3d11VideoCompositorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for D3d11VideoCompositorError
impl RefUnwindSafe for D3d11VideoCompositorError
impl Send for D3d11VideoCompositorError
impl Sync for D3d11VideoCompositorError
impl Unpin for D3d11VideoCompositorError
impl UnsafeUnpin for D3d11VideoCompositorError
impl UnwindSafe for D3d11VideoCompositorError
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