#[non_exhaustive]pub enum TargetRecordingError {
InvalidRenderTarget(&'static str),
FrameTextureUnavailable,
}Expand description
Rejected input to crate::Renderer::record_layered_to_target_scaled.
These failures are detected before the encoder, atlas, or stencil cache is
changed. GPU validation failures (for example, a view from another device)
are reported by wgpu instead. This separate error type leaves the published
RendererError variants unchanged for existing exhaustive matches.
§Examples
use ailloli_ui_render_wgpu::TargetRecordingError;
let error = TargetRecordingError::FrameTextureUnavailable;
assert!(error.to_string().contains("backing texture"));Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidRenderTarget(&'static str)
Dimensions, format, scale, or the supplied texture violate the contract.
The diagnostic explains which check failed; its wording is not a stable identifier. Match the variant, not the diagnostic string.
A backdrop filter or destination blend needs the backing texture.
Supply the texture corresponding to the view, with COPY_SRC usage.
Trait Implementations§
Source§impl Debug for TargetRecordingError
impl Debug for TargetRecordingError
Source§impl Display for TargetRecordingError
impl Display for TargetRecordingError
Source§impl Error for TargetRecordingError
impl Error for TargetRecordingError
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()
Auto Trait Implementations§
impl Freeze for TargetRecordingError
impl RefUnwindSafe for TargetRecordingError
impl Send for TargetRecordingError
impl Sync for TargetRecordingError
impl Unpin for TargetRecordingError
impl UnwindSafe for TargetRecordingError
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