pub enum WgpuCaptureError {
UnsupportedFormat(TextureFormat),
MapFailed(BufferAsyncError),
PollFailed(PollError),
}Expand description
Errors that can occur while capturing a GPU texture.
Variants§
UnsupportedFormat(TextureFormat)
The texture format is not yet supported.
Supported formats: Rgba8Unorm, Rgba8UnormSrgb, Bgra8Unorm,
Bgra8UnormSrgb.
MapFailed(BufferAsyncError)
The staging buffer could not be mapped.
PollFailed(PollError)
The device poll failed.
Trait Implementations§
Source§impl Debug for WgpuCaptureError
impl Debug for WgpuCaptureError
Source§impl Display for WgpuCaptureError
impl Display for WgpuCaptureError
Source§impl Error for WgpuCaptureError
impl Error for WgpuCaptureError
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<WgpuCaptureError> for CaptureError
impl From<WgpuCaptureError> for CaptureError
Source§fn from(e: WgpuCaptureError) -> Self
fn from(e: WgpuCaptureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WgpuCaptureError
impl RefUnwindSafe for WgpuCaptureError
impl Send for WgpuCaptureError
impl Sync for WgpuCaptureError
impl Unpin for WgpuCaptureError
impl UnsafeUnpin for WgpuCaptureError
impl UnwindSafe for WgpuCaptureError
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