pub enum RenderTargetError {
ZeroDimension,
DimensionsTooLarge,
RendererMismatch,
InvalidOpacity,
SourceAliasesDestination,
InvalidBackground,
Frame(RendererFrameError),
}Expand description
Failure while creating or composing a RenderTarget2d.
Variants§
ZeroDimension
Target dimensions must both be non-zero.
DimensionsTooLarge
Dimensions exceed the current device’s supported target size or allocation range.
RendererMismatch
The target belongs to another renderer and GPU device.
InvalidOpacity
Opacity must be finite and within 0.0..=1.0.
SourceAliasesDestination
A temporal source must not be one of its destination ping-pong targets.
InvalidBackground
The destination clear color was not normalized linear RGBA.
Frame(RendererFrameError)
Surface acquisition or presentation failed.
Trait Implementations§
Source§impl Clone for RenderTargetError
impl Clone for RenderTargetError
Source§fn clone(&self) -> RenderTargetError
fn clone(&self) -> RenderTargetError
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 moreimpl Copy for RenderTargetError
Source§impl Debug for RenderTargetError
impl Debug for RenderTargetError
Source§impl Display for RenderTargetError
impl Display for RenderTargetError
Source§impl Error for RenderTargetError
impl Error for RenderTargetError
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 RenderTargetError
impl PartialEq for RenderTargetError
impl StructuralPartialEq for RenderTargetError
Auto Trait Implementations§
impl Freeze for RenderTargetError
impl RefUnwindSafe for RenderTargetError
impl Send for RenderTargetError
impl Sync for RenderTargetError
impl Unpin for RenderTargetError
impl UnsafeUnpin for RenderTargetError
impl UnwindSafe for RenderTargetError
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